From f17963eefbd34f92d4901dc5eef197cdc43242ed Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Mon, 29 Dec 2003 23:44:58 -0800 Subject: [PATCH] [PATCH] FAT: More relax FATFS validity tests (1/10) From: OGAWA Hirofumi Yokota Hiroshi 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/fat/inode.c b/fs/fat/inode.c index 378bfde188d0c..6bd11a2617d17 100644 --- a/fs/fat/inode.c +++ b/fs/fat/inode.c @@ -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 { -- 2.53.0