From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Thu, 05 Jan 2012 17:14:23 +0100 Subject: [U-Boot] [PATCH v2 1/3] fs/fat: Fix FAT detection to support non-DOS partition tables In-Reply-To: <1324487292-7299-2-git-send-email-Kyle.D.Moffett@boeing.com> References: <1324487292-7299-1-git-send-email-Kyle.D.Moffett@boeing.com> <1324487292-7299-2-git-send-email-Kyle.D.Moffett@boeing.com> Message-ID: <20120105161423.098A5B6F26@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > > -- > > 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"