Re: [PATCH] FAT32 - invalid FSINFO offset fix

Albert Cranford (AlbertC@millennium.net)
Thu, 15 Apr 1999 00:12:31 -0400


Max Cohan wrote:
>
> This should fix all of the problems with:
[SNIP]
>
> diff -u --new-file --recursive linux-2.2.5/fs/fat/inode.c linux/fs/fat/inode.c
> --- linux-2.2.5/fs/fat/inode.c Mon Jan 4 10:08:28 1999
> +++ linux/fs/fat/inode.c Wed Mar 31 01:06:05 1999
> @@ -3,6 +3,10 @@

Heres a patch against pre-patch-2.2.6 and against the above patch
to allow inode.c to compile correctly.

--- linux-2.2.6/fs/fat/inode.c.orig Wed Apr 14 23:50:43 1999
+++ linux/fs/fat/inode.c Wed Apr 14 23:50:47 1999
@@ -366,7 +366,6 @@
fat32 = 1;
MSDOS_SB(sb)->fat_length=
CF_LE_W(b->fat32_length)*sector_mult;
MSDOS_SB(sb)->root_cluster = CF_LE_L(b->root_cluster);
- CF_LE_W((b->info_sector), logical_sector_size);

/* MC - if info_sector is 0, don't multiply by 0 */
if(CF_LE_W(b->info_sector) == 0) {

-- 
Albert Cranford Deerfield Beach FL USA
AlbertC@millennium.net

- 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/