[U-Boot] [U-Boot, v2] disk/part_dos: check harder for partition table
Tom Rini
trini at ti.com
Thu May 2 18:07:17 CEST 2013
On Tue, Apr 09, 2013 at 05:46:14AM -0000, egbert.eich at gmail.com wrote:
> From: Egbert Eich <eich at suse.com>
>
> Devices that used to have a whole disk FAT filesystem but got then
> partitioned will most likely still have a FAT or FAT32 signature
> in the first sector as this sector does not get overwritten by
> a partitioning tool (otherwise the tool would risk to kill the mbr).
>
> The current partition search algorithm will erronously detects such
> a device as a raw FAT device.
>
> Instead of looking for the FAT or FAT32 signatures immediately we
> use the same algorithm as used by the Linux kernel and first check
> for a valid boot indicator flag on each of the 4 partitions.
> If the value of this flag is invalid for the first entry we then
> do the raw partition check.
> If the flag for any higher partition is wrong we assume the device
> is neiter a MBR nor PBR device.
>
> Signed-off-by: Egbert Eich <eich at suse.com>
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/20130502/5ebcb908/attachment.pgp>
More information about the U-Boot
mailing list