Re: Linux 2.6.9-ac5 - more stupid FAT filesystems

From: Sami Farin
Date: Sat Oct 30 2004 - 06:23:35 EST


On Sat, Oct 30, 2004 at 01:04:15PM +0200, Vojtech Pavlik wrote:
...
> > I guess Canon IXUS 400 is overstupid or something.
>
> No, the patch from me (included in -ac) is completely bogus. The correct
> patch is attached.

OK :) I reverted the ac5 FAT patch and applied this one,
now it mounts nicely. Thanks.

Filesystem Type Size Used Avail Use% Mounted on
/dev/sdb1 vfat 245M 27M 218M 11% /mnt/usb

> diff -urN linux-2.6.8/fs/fat/inode.c linux-2.6.8-fat/fs/fat/inode.c
> --- linux-2.6.8/fs/fat/inode.c 2004-09-30 15:27:58.343661051 +0200
> +++ linux-2.6.8-fat/fs/fat/inode.c 2004-09-30 15:33:32.820915377 +0200
> @@ -1003,6 +1003,8 @@
> /* all is as it should be */
> } else if (media == 0xf8 && FAT_FIRST_ENT(sb, 0xfe) == first) {
> /* bad, reported on pc9800 */
> + } else if (media == 0xf8 && FAT_FIRST_ENT(sb, 0xff) == first) {
> + /* bad, reported on Nokia phone with USB storage */
> } else if (media == 0xf0 && FAT_FIRST_ENT(sb, 0xf8) == first) {
> /* bad, reported with a MO disk on win95/me */
> } else if (first == 0) {

--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/