[PATCH] Fix for linux/fs/fat/inode.c

Andries.Brouwer@cwi.nl
Mon, 23 Aug 1999 15:12:26 +0200 (MET DST)


Since 2.1.60 it is no longer possible to specify
the blocksize= option when mounting an msdos filesystem.
(Or, rather, such an option is ignored.)
Moreover, "mount /dev/foo /mnt -t msdos -o blocksize"
causes an Oops. Below a patch.
Andries

--- inode.c~ Mon Aug 9 20:43:49 1999
+++ inode.c Mon Aug 23 14:43:37 1999
@@ -307,12 +307,12 @@
else opts->quiet = 1;
}
else if (!strcmp(this_char,"blocksize")) {
- if (*value) ret = 0;
- else if (*blksize != 512 &&
- *blksize != 1024 &&
- *blksize != 2048) {
- printk ("MSDOS FS: Invalid blocksize "
- "(512, 1024, or 2048)\n");
+ if (!value || !*value) ret = 0;
+ else {
+ *blksize = simple_strtoul(value,&value,0);
+ if (*value || (*blksize != 512 &&
+ *blksize != 1024 && *blksize != 2048))
+ ret = 0;
}
}
else if (!strcmp(this_char,"sys_immutable")) {

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