[U-Boot] [U-Boot, 1/2] FAT: check for partition 0 not 1 for whole-disk fs

Tom Rini trini at ti.com
Mon Oct 8 20:47:25 CEST 2012


On Fri, Oct 05, 2012 at 01:17:39PM -0000, Stephen Warren wrote:

> From: Stephen Warren <swarren at nvidia.com>
> 
> 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 at nvidia.com>
> 
> ---
> Tom, this series is really a bug-fix and should go in before the 9-long
> series I posted earlier today. I'll need to rebase that other series on
> top of this and repost, once any comments are addressed.

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20121008/333d45e1/attachment.pgp>


More information about the U-Boot mailing list