]> git.hungrycats.org Git - linux/commit
[PATCH] Relax FATFS validity tests
authorAndries E. Brouwer <andries.brouwer@cwi.nl>
Sun, 26 Oct 2003 01:11:03 +0000 (17:11 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Sun, 26 Oct 2003 01:11:03 +0000 (17:11 -0800)
commit1f690869108c01d824161324c5c37d00d40b356b
treeed2d626d46272e07f3e332a6890fae2c131fdbe5
parentd6e0320ff0999731bf1ccf79534701b239e93b45
[PATCH] Relax FATFS validity tests

The first FAT entry should have the media byte (0xf0,0xf8,...,0xff)
extended with all 1 bits in the first FAT entry.

Checking this is a good idea, it prevents us from mounting garbage
as FAT - there is no good magic for FAT.

Unfortunately, Windows does not enforce this, and 2.4 doesn't either.
It turns out that there are filesystems around (two reports so far) that
have a zero first FAT entry, and work under Windows and 2.4 but fail to
mount under 2.6.

So, this weakens the test.
fs/fat/inode.c