Whamcloud - gitweb
libblkid: Fix false detection of DFSee created filesystems.
authorTheodore Ts'o <tytso@mit.edu>
Sun, 24 Aug 2008 02:11:01 +0000 (22:11 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 24 Aug 2008 21:24:18 +0000 (17:24 -0400)
commit78d89cda680498957e4ad78602751d1f905cee08
treebe9842075ca80de6227635950945a6b316eb59ed
parent30ab7f4c65bd32a7d24f53e8c87ed5b5ae757626
libblkid: Fix false detection of DFSee created filesystems.

OS/2 and DFSee creates a pseudo FAT-12/16 header in the first 512
bytes of a filesystem which looks enough like a FAT-12/16 to fool
blkid.  Part of this is because we don't require ms_magic or vs_magic
to be the strings "FAT12 ", "FAT16 ", or "FAT32 ", since some FAT
filesystem formatters don't set ms_magic or vs_magic.  To address
this, we explicitly test for "JFS     " and "HPFS    " in ms_magic,
and if they are found, we assume the filesystem is definitely not
a FAT filesystem.

Addresses-Launchpad-Bug: #255255

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/blkid/probe.c