u-boot-brain/fs/fat
Stephen Warren bd1a7e3034 FAT: check for partition 0 not 1 for whole-disk fs
The recent switch to use get_device_and_partition() from do_fat_ls()
broke the ability to access a FAT filesystem directly on a whole device;
FAT only works within a partition on a device.

This change makes e.g. "fatls mmc 0:0" work; explicitly requesting
partition ID 0 is something that get_device_and_partition() fully
supports. However, fat_register_device() expects partition ID 1 to be
used in the full-disk case; partition ID 1 was previously implicitly
specified when the user didn't actually specify a partition ID. Update
fat_register_device() to expect the correct ID.

This change does imply that if a user explicitly executes "fatls mmc 0:1"
then this will fail, and may be a change in behaviour.

Note that this still prevents "fatls mmc 0:auto" from working. The next
patch will fix that.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
2012-10-08 11:15:04 -07:00
..
fat_write.c FAT: Make it possible to read from any file position 2012-09-26 11:11:32 -07:00
fat.c FAT: check for partition 0 not 1 for whole-disk fs 2012-10-08 11:15:04 -07:00
file.c fs/fat: Big code cleanup. 2010-07-24 20:54:46 +02:00
Makefile FAT: Add FAT write feature 2011-10-26 21:40:44 +02:00