Re: msdos FS bug

Brandon S. Allbery KF8NH (allbery@kf8nh.apk.net)
Mon, 06 Jul 1998 18:16:49 -0300


In message <Pine.LNX.3.96.980706133017.3671B-100000@eiterra>, "Phillip R.
Jaenk
e" writes:
+-----
| Severity: If the partition is corrupted, WTF haven't you fixed it yet? ;P
| This problem should NOT exist, because you shouldn't mount a corrupted fs.
+--->8

Wonderful idea. Care to show us how to accomplish this, given that there's
no way to detect corruption aside from forcing a full scan of the filesystem
structure at mount time? (There isn't even a way to reliably determine
whether an MSDOS filesystem *exists* on the partition; the msdos fs code
checks to see if the basic parameters seem to make sense, as the best it can
do.)

The MSDOS filesystem isn't a sensible structure that can be verified easily.
There is no superblock magic number, no dirty flag, no sanity checking.
And we can't retrofit such checking because neither DOS nor Windows knows or
cares about it.

-- 
brandon s. allbery	[os/2][linux][solaris][japh]	 allbery@kf8nh.apk.net
system administrator	     [WAY too many hats]	   allbery@ece.cmu.edu
electrical and computer engineering
carnegie mellon university			   (bsa@kf8nh is still valid.)

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu