Commit f17963ee authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] FAT: More relax FATFS validity tests (1/10)

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.
parent 83a3e44d
...@@ -968,6 +968,8 @@ int fat_fill_super(struct super_block *sb, void *data, int silent, ...@@ -968,6 +968,8 @@ int fat_fill_super(struct super_block *sb, void *data, int silent,
/* all is as it should be */ /* all is as it should be */
} else if (media == 0xf8 && FAT_FIRST_ENT(sb, 0xfe) == first) { } else if (media == 0xf8 && FAT_FIRST_ENT(sb, 0xfe) == first) {
/* bad, reported on pc9800 */ /* 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) { } else if (first == 0) {
/* bad, reported with a SmartMedia card */ /* bad, reported with a SmartMedia card */
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment