Re: vfat problems with test-patch-2.2.0-pre2 applied

Woodazy@datacomm.ch
Fri, 1 Jan 1999 18:01:34 +0100


christophe,

I put in some debug messages and it appears bh->b_size=0

The bh struct is set by a call to fat_bread(sb, 0) fs/fat/inode.c

I did not do much more debugging since I have not look at that much kernel
code, yet, to be familiar with what does what and why.

Sincerely,
Woodazy
(return email address is bogus)

FAT16 mount
Dec 31 17:18:52 localhost kernel: tawmanbug: MSDOS_SB(sb)->fsinfo_offset - sizeof(MSDOS_SB(sb)->fsinfo_offset) + 1)> bh->b_size
Dec 31 17:18:52 localhost kernel: tawmanbug: MSDOS_SB(sb)->fsinfo_offset=0
Dec 31 17:18:52 localhost kernel: tawmanbug: sizeof(MSDOS_SB(sb)->fsinfo_offset=4
Dec 31 17:18:52 localhost kernel: tawmanbug: bh->b_size=0
Dec 31 17:18:52 localhost kernel: tawmanbug: b->fat_length=251

FAT32 mount
Dec 31 17:19:47 localhost kernel: tawmanbug: MSDOS_SB(sb)->fsinfo_offset - sizeof(MSDOS_SB(sb)->fsinfo_offset) + 1)> bh->b_size
Dec 31 17:19:47 localhost kernel: tawmanbug: MSDOS_SB(sb)->fsinfo_offset=992
Dec 31 17:19:47 localhost kernel: tawmanbug: sizeof(MSDOS_SB(sb)->fsinfo_offset=4
Dec 31 17:19:47 localhost kernel: tawmanbug: bh->b_size=0
Dec 31 17:19:47 localhost kernel: tawmanbug: b->fat_length=0

>+ if ((MSDOS_SB(sb)->fsinfo_offset -
>sizeof(MSDOS_SB(sb)->fsinfo_offset) + 1)> bh-
>>b_size)
>+ printk("fat_read_super: Bad
>fsinfo_offset\n");
>
>this probleme is introduced by my patch.
>I assume there that struct buffer_head
>b_data is b_size length.
>Can someone tell me If I assume right or if
>b_data size if different (greater than) b_size ?
>
>christophe

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