FAT fs sanity check patch

From: Yokota Hiroshi
Date: Tue Dec 02 2003 - 17:23:18 EST


Hello,

This patch is required for my 640MB Optical disk.
Because some MS windows based FAT filesystem disk formatter generetes
wrong super bloacks.

-------------------------------------------
--- linux-2.6.0-test10/fs/fat/inode.c.bak 2003-11-24 10:31:52.000000000 +0900
+++ linux-2.6.0-test10/fs/fat/inode.c 2003-11-30 01:12:37.000000000 +0900
@@ -968,6 +968,8 @@
/* all is as it should be */
} else if (media == 0xf8 && FAT_FIRST_ENT(sb, 0xfe) == first) {
/* bad, reported on pc9800 */
+ } else if (media == 0xf0 && FAT_FIRST_ENT(sb, 0xf8) == first) {
+ /* bad, reported with a MO disk */
} else if (first == 0) {
/* bad, reported with a SmartMedia card */
} else {
-------------------------------------------

PS:
I don't subscribe linux-kernel ML. If you have any questions,
please send mail to my mail address.

---
YOKOTA Hiroshi
E-mail: yokota (at) netlab (dot) is (dot) tsukuba (dot) ac (dot) jp
-
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/