]> git.hungrycats.org Git - linux/commitdiff
[PATCH] FAT: More relax FATFS validity tests (1/10)
authorAndrew Morton <akpm@osdl.org>
Tue, 30 Dec 2003 07:44:58 +0000 (23:44 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Tue, 30 Dec 2003 07:44:58 +0000 (23:44 -0800)
From: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
      Yokota Hiroshi <yokota@netlab.is.tsukuba.ac.jp>

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

fs/fat/inode.c

index 378bfde188d0c3202c66602a5d538927d34b1873..6bd11a2617d175afd4a077829c463d99ba3cc173 100644 (file)
@@ -968,6 +968,8 @@ int fat_fill_super(struct super_block *sb, void *data, int silent,
                /* 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 on win95/me */
        } else if (first == 0) {
                /* bad, reported with a SmartMedia card */
        } else {