forked from len0rd/rockbox
Add support (runtime detection) for 2048 bytes/sector filesystem.
Large sectors are enabled for iPod Video (including 5.5G) only. Might still cause FS corruption (however, unlikely), so beware! Based on FS#6169 by Robert Carboneau. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11651 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
1612275960
commit
ae66c2b9ee
4 changed files with 135 additions and 59 deletions
|
@ -157,7 +157,21 @@ int disk_mount(int drive)
|
|||
mounted++;
|
||||
vol_drive[volume] = drive; /* remember the drive for this volume */
|
||||
volume = get_free_volume(); /* prepare next entry */
|
||||
continue;
|
||||
}
|
||||
|
||||
# if MAX_SECTOR_SIZE != PHYSICAL_SECTOR_SIZE
|
||||
/* Try again with sector size 2048 */
|
||||
if (!fat_mount(IF_MV2(volume,) IF_MV2(drive,) pinfo[i].start
|
||||
* (MAX_SECTOR_SIZE/PHYSICAL_SECTOR_SIZE)))
|
||||
{
|
||||
pinfo[i].start *= MAX_SECTOR_SIZE/PHYSICAL_SECTOR_SIZE;
|
||||
pinfo[i].size *= MAX_SECTOR_SIZE/PHYSICAL_SECTOR_SIZE;
|
||||
mounted++;
|
||||
vol_drive[volume] = drive; /* remember the drive for this volume */
|
||||
volume = get_free_volume(); /* prepare next entry */
|
||||
}
|
||||
# endif
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue