Whamcloud - gitweb
Improve VFAT detection to support filesystems w/o a magic string in the superblock
authorKarel Zak <kzak@redhat.com>
Tue, 6 Sep 2005 12:13:35 +0000 (08:13 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 6 Sep 2005 12:13:35 +0000 (08:13 -0400)
commitc4c740ff488dae232dd3a64fccd26ec7265165a4
tree067f5d76e52831c41d25700f46d2e2534b0ed1d2
parentabaa11240a742bcfc4783e2cbebb7dd0cdf17e96
Improve VFAT detection to support filesystems w/o a magic string in the superblock

The current libblkid code expects that there's magic string in FAT super
block (like "FAT12", "FAT16", ...). It's very often right, but valid FAT
super block may be without magic string too :-(

The patch from attachment fix this problem. It's inspired by HAL and
Linux kernel.

Signed-off-by: Karel Zak <kzak@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/blkid/ChangeLog
lib/blkid/probe.c
lib/blkid/probe.h