From: Felix Zielcke <fzielcke@z-51.de>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: [PATCH] try to avoid false positives on FAT filesystem
Date: Sun, 08 Feb 2009 20:59:58 +0100 [thread overview]
Message-ID: <1234123198.3429.11.camel@fz.local> (raw)
In-Reply-To: <20090208195652.GB3579@thorin>
[-- Attachment #1: Type: text/plain, Size: 238 bytes --]
Am Sonntag, den 08.02.2009, 20:56 +0100 schrieb Robert Millan:
> I reviewed this thread and couldn't find it. Did you send it elsewhere?
In my first message where you quoted the changelog entry.
Well again attached.
--
Felix Zielcke
[-- Attachment #2: fat_avoid_fp.diff --]
[-- Type: text/x-patch, Size: 913 bytes --]
2009-02-05 Felix Zielcke <fzielcke@z-51.de>
fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
bpb.version_specific.fat12_or_fat16.fstype and
bpb.version_specific.fat32.fstype.
Index: fs/fat.c
===================================================================
--- fs/fat.c (revision 1973)
+++ fs/fat.c (working copy)
@@ -187,6 +187,11 @@ grub_fat_mount (grub_disk_t disk)
if (grub_disk_read (disk, 0, 0, sizeof (bpb), (char *) &bpb))
goto fail;
+ if (! grub_strncmp((const char *)bpb.version_specific.fat12_or_fat16.fstype,"FAT12",5)
+ || ! grub_strncmp((const char *)bpb.version_specific.fat12_or_fat16.fstype,"FAT16",5)
+ || ! grub_strncmp((const char *)bpb.version_specific.fat32.fstype,"FAT32",5))
+ goto fail;
+
/* Get the sizes of logical sectors and clusters. */
data->logical_sector_bits =
fat_log2 (grub_le_to_cpu16 (bpb.bytes_per_sector));
next prev parent reply other threads:[~2009-02-08 20:00 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-05 20:39 [PATCH] try to avoid false positives on FAT filesystem Felix Zielcke
2009-02-06 6:07 ` phcoder
2009-02-06 15:46 ` Felix Zielcke
2009-02-06 18:31 ` phcoder
2009-02-07 19:32 ` Felix Zielcke
2009-02-07 22:52 ` Robert Millan
2009-02-08 9:03 ` Felix Zielcke
2009-02-08 18:02 ` Robert Millan
2009-02-08 19:18 ` Felix Zielcke
2009-02-08 19:56 ` Robert Millan
2009-02-08 19:59 ` Felix Zielcke [this message]
2009-02-09 14:07 ` Robert Millan
2009-02-09 14:17 ` Felix Zielcke
2009-02-09 14:40 ` Robert Millan
2009-02-09 14:49 ` Felix Zielcke
2009-02-09 17:06 ` Robert Millan
2009-02-09 18:01 ` Felix Zielcke
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=1234123198.3429.11.camel@fz.local \
--to=fzielcke@z-51.de \
--cc=grub-devel@gnu.org \
/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.