1
0
Fork 0
forked from len0rd/rockbox

Fix a couple quirks from the previous commit.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17370 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Nicolas Pennequin 2008-05-05 10:49:31 +00:00
parent 357ffb3c46
commit 367aec35d7
2 changed files with 3 additions and 3 deletions

View file

@ -2065,11 +2065,11 @@ static uint16_t extension_payload(bitfile *ld, drc_info *drc, uint16_t count)
return n; return n;
case EXT_FILL_DATA: case EXT_FILL_DATA:
/* fill_nibble = */ faad_getbits(ld, 4 /* fill_nibble = */ faad_getbits(ld, 4
DEBUGVAR(1,136,"extension_payload(): fill_nibble")); /* must be æ0000Æ */ DEBUGVAR(1,136,"extension_payload(): fill_nibble")); /* must be "0000" */
for (i = 0; i < count-1; i++) for (i = 0; i < count-1; i++)
{ {
/* fill_byte[i] = */ faad_getbits(ld, 8 /* fill_byte[i] = */ faad_getbits(ld, 8
DEBUGVAR(1,88,"extension_payload(): fill_byte")); /* must be æ10100101Æ */ DEBUGVAR(1,88,"extension_payload(): fill_byte")); /* must be "10100101" */
} }
return count; return count;
case EXT_DATA_ELEMENT: case EXT_DATA_ELEMENT:

View file

@ -392,7 +392,7 @@ int format_partition(struct ipod_t* ipod, int partition)
if ( qTotalSectors >= 0xffffffff ) if ( qTotalSectors >= 0xffffffff )
{ {
/* This is a more fundamental limitation on FAT32 - the total /* This is a more fundamental limitation on FAT32 - the total
sector count in the root dir ­s 32bit. With a bit of sector count in the root dir is 32bit. With a bit of
creativity, FAT32 could be extended to handle at least 2^28 creativity, FAT32 could be extended to handle at least 2^28
clusters There would need to be an extra field in the clusters There would need to be an extra field in the
FSInfo sector, and the old sector count could be set to FSInfo sector, and the old sector count could be set to