All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 1/3] fs/fat: Fix FAT detection to support non-DOS partition tables
Date: Thu, 05 Jan 2012 17:14:23 +0100	[thread overview]
Message-ID: <20120105161423.098A5B6F26@gemini.denx.de> (raw)
In-Reply-To: <1324487292-7299-2-git-send-email-Kyle.D.Moffett@boeing.com>

Dear Kyle Moffett,

In message <1324487292-7299-2-git-send-email-Kyle.D.Moffett@boeing.com> you wrote:
> The FAT filesystem code currently ends up requiring that the partition
> table be a DOS MBR, as it checks for the DOS 0x55 0xAA signature on the
> partition table (which may be Mac, EFI, ISO9660, etc) before actually
> computing the partition offset.
> 
> This fixes support for accessing a FAT filesystem in an ISO9660 boot
> volume (El-Torito format) by reordering the filesystem checks and
> reading the 0x55 0xAA "DOS boot signature" and FAT/FAT32 magic number
> from the first sector of the partition instead of from sector 0.
> 
> Signed-off-by: Kyle Moffett <Kyle.D.Moffett@boeing.com>
> 
> --
> 
> v2:
> I have removed the unnecessary static initializers.  All the variables
> are memset to 0 as part of the BSS, and cur_dev is only initialized
> after the rest of the variables have been set correctly.
> 
> ---
>  fs/fat/fat.c |  117 +++++++++++++++++++++++++++-------------------------------
>  1 files changed, 54 insertions(+), 63 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"Plan to throw one away.  You will anyway."
                              - Fred Brooks, "The Mythical Man Month"

  reply	other threads:[~2012-01-05 16:14 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-21 17:08 [U-Boot] [PATCH v2 0/3] Enable access to FAT filesystem in an ISO9660 El-Torito volume Kyle Moffett
2011-12-21 17:08 ` [U-Boot] [PATCH v2 1/3] fs/fat: Fix FAT detection to support non-DOS partition tables Kyle Moffett
2012-01-05 16:14   ` Wolfgang Denk [this message]
2012-01-05 19:12   ` Wolfgang Denk
2011-12-21 17:08 ` [U-Boot] [PATCH v2 2/3] fs/fat: Improve error handling Kyle Moffett
2012-01-05 16:15   ` Wolfgang Denk
2011-12-21 17:08 ` [U-Boot] [PATCH v2 3/3] usb_storage: Fix EHCI "out of buffer pointers" with CD-ROM Kyle Moffett
2012-01-05 16:16   ` Wolfgang Denk
2012-02-26 23:08 ` [U-Boot] [PATCH v2 0/3] Enable access to FAT filesystem in an ISO9660 El-Torito volume Marek Vasut
2012-03-30 21:03   ` Wolfgang Denk

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=20120105161423.098A5B6F26@gemini.denx.de \
    --to=wd@denx.de \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.