u-boot-2016/disk
Egbert Eich 9d956e0fef disk/part_dos: check harder for partition table
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@suse.com>
2013-05-01 16:24:01 -04:00
..
Makefile disk/part.c: Make features optional 2011-07-26 14:10:14 +02:00
part.c disk: define HAVE_BLOCK_DEVICE in a common place 2013-03-14 11:06:44 -07:00
part_amiga.c disk: define HAVE_BLOCK_DEVICE in a common place 2013-03-14 11:06:44 -07:00
part_amiga.h * Code cleanup: 2003-06-27 21:31:46 +00:00
part_dos.c disk/part_dos: check harder for partition table 2013-05-01 16:24:01 -04:00
part_dos.h disk: part_msdos: parse and store partition UUID 2012-09-25 15:05:45 -07:00
part_efi.c disk: fix unaligned access in efi partitions 2013-04-02 16:23:34 -04:00
part_iso.c disk: define HAVE_BLOCK_DEVICE in a common place 2013-03-14 11:06:44 -07:00
part_iso.h Big white-space cleanup. 2008-05-21 00:14:08 +02:00
part_mac.c disk: define HAVE_BLOCK_DEVICE in a common place 2013-03-14 11:06:44 -07:00
part_mac.h * Code cleanup: 2003-06-27 21:31:46 +00:00