From: Jos Hulzink <josh@stack.nl>
To: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Cc: Linux Kernel Development <linux-kernel@vger.kernel.org>
Subject: Re: 2.5.5-pre1: mounting NTFS partitions -t VFAT
Date: Mon, 18 Feb 2002 13:55:29 +0100 (CET) [thread overview]
Message-ID: <20020218134640.Y24227-100000@toad.stack.nl> (raw)
In-Reply-To: <87aduamrbl.fsf@devron.myhome.or.jp>
Hi Ogawa,
Your patch seems to fix it more or less, not the way it should be
fixed, imho. Partitions other than FAT return bogus information, but
bogus is not always zero. Fortunately enough, one of those new if
statements returns an error, but this is a "works for me"
solution, not a decent one.
What lacks is a fingerprint detector, and iirc -long time ago- FAT has a
very easy to detect fingerprint.
I'll dig into FAT documentation tonight.
Jos
On Sat, 16 Feb 2002, OGAWA Hirofumi wrote:
> Sorry, my fault.
>
> The following patch should fix this bug. I'll submit it after test.
>
> --- fat_bug-2.5.5-pre1/fs/fat/inode.c.orig Thu Feb 14 13:47:54 2002
> +++ fat_bug-2.5.5-pre1/fs/fat/inode.c Sat Feb 16 05:06:58 2002
> @@ -624,6 +624,18 @@
> }
>
> b = (struct fat_boot_sector *) bh->b_data;
> + if (!b->fats) {
> + if (!silent)
> + printk("FAT: bogus number of FAT structure\n");
> + brelse(bh);
> + goto out_invalid;
> + }
> + if (!b->reserved) {
> + if (!silent)
> + printk("FAT: bogus number of reserved sectors\n");
> + brelse(bh);
> + goto out_invalid;
> + }
> if (!b->secs_track) {
> if (!silent)
> printk("FAT: bogus sectors-per-track value\n");
> --
> OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
next prev parent reply other threads:[~2002-02-18 12:56 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-15 10:30 2.5.5-pre1: mounting NTFS partitions -t VFAT Jos Hulzink
2002-02-15 17:11 ` Anton Altaparmakov
2002-02-15 20:18 ` OGAWA Hirofumi
2002-02-18 12:55 ` Jos Hulzink [this message]
2002-02-18 14:56 ` OGAWA Hirofumi
2002-02-19 10:02 ` VFS issues (was: Re: 2.5.5-pre1: mounting NTFS partitions -t VFAT) Jos Hulzink
2002-02-19 11:52 ` Richard Russon
2002-02-19 12:48 ` Jos Hulzink
2002-02-19 13:34 ` Alexander Viro
2002-02-19 14:25 ` Denis Vlasenko
2002-02-19 11:03 ` Jos Hulzink
2002-03-09 9:50 ` [BUG] 2.5.6: IPv6 fails to initialize Jos Hulzink
2002-03-09 20:55 ` Ben Clifford
2002-03-11 17:58 ` David S. Miller
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=20020218134640.Y24227-100000@toad.stack.nl \
--to=josh@stack.nl \
--cc=hirofumi@mail.parknet.co.jp \
--cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox