Add support for for per-drive logical sector size. This allows targets to have a different logical sector size for the internal storage and the sd card, like on the fuze+ for example.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31270 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Amaury Pouly 2011-12-15 17:07:19 +00:00
parent 39148be8ac
commit 3a6e3c254e
3 changed files with 15 additions and 5 deletions

View file

@ -787,7 +787,7 @@ static void handle_scsi(struct command_block_wrapper* cbw)
lun_present = false;
#ifdef MAX_LOG_SECTOR_SIZE
block_size_mult = disk_sector_multiplier;
block_size_mult = disk_get_sector_multiplier(lun);
#endif
cur_cmd.tag = cbw->tag;