u-boot-brain/fs/fat
Kyle Moffett 46236b1407 fs/fat: Improve error handling
The FAT filesystem fails silently in inexplicable ways when given a
filesystem with a block-size that does not match the device sector size.
In theory this is not an unsupportable combination but requires a major
rewrite of a lot of the filesystem.  Until that occurs, the filesystem
should detect that scenario and display a helpful error message.

This scenario in particular occurred on a 512-byte blocksize FAT fs
stored in an El-Torito boot volume on a CD-ROM (2048-byte sector size).

Additionally, in many circumstances the ->block_read method will not
return a negative number to indicate an error but instead return 0 to
indicate the number of blocks successfully read (IE: None).

The FAT filesystem should defensively check to ensure that it got all of
the sectors that it asked for when reading.

Signed-off-by: Kyle Moffett <Kyle.D.Moffett@boeing.com>
2012-01-05 20:10:37 +01:00
..
fat_write.c FAT: fix some issues in FAT write support code 2011-12-20 23:18:43 +01:00
fat.c fs/fat: Improve error handling 2012-01-05 20:10:37 +01: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