From: Tom Rini <trini@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [U-Boot, v2] disk/part_dos: check harder for partition table
Date: Thu, 2 May 2013 12:07:17 -0400 [thread overview]
Message-ID: <20130502160717.GC22334@bill-the-cat> (raw)
In-Reply-To: <1365522374-30237-1-git-send-email-egbert.eich@gmail.com>
On Tue, Apr 09, 2013 at 05:46:14AM -0000, egbert.eich at gmail.com wrote:
> From: Egbert Eich <eich@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@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>
prev parent reply other threads:[~2013-05-02 16:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-26 9:06 [U-Boot] [PATCH] disk: part_dos: check harder for partition table egbert.eich at googlemail.com
2013-03-26 13:04 ` [U-Boot] [PATCH] disk/part_dos: " Egbert Eich
2013-03-26 14:05 ` [U-Boot] [PATCH] disk: part_dos: " Wolfgang Denk
2013-04-09 15:46 ` [U-Boot] [Patch v2] disk/part_dos: " Egbert Eich
2013-05-02 16:07 ` Tom Rini [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130502160717.GC22334@bill-the-cat \
--to=trini@ti.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox