]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid: remove test for non-zero head count in FAT superblock probe.
authorNick Holloway <Nick.Holloway@pyrites.org.uk>
Sun, 10 Apr 2011 12:35:56 +0000 (13:35 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 12 Apr 2011 12:38:53 +0000 (14:38 +0200)
commit20f5be46ec57af3f21913c487000d69fb8857e18
treeda03f01031a205e1efeb6b26085c8c74bb0a2002
parent7ca59ef25f8ebed37ddcf51155954077e2654d1c
libblkid: remove test for non-zero head count in FAT superblock probe.

This change enables the auto-detection of the internal storage on a VTech
Kidizoom camera, which has a zero head count value in the superblock.

Microsoft documentation, "FAT: General Overview of On-Disk Format", states
that the sectors and heads fields are only relevant for media that have
a geometry.

The Linux kernel also does not require a non-zero head count, and can
manually mount the filesystem.

Signed-off-by: Nick Holloway <Nick.Holloway@pyrites.org.uk>
shlibs/blkid/src/superblocks/vfat.c
tests/expected/blkid/low-probe-fat16_noheads [new file with mode: 0644]
tests/ts/blkid/images-fs/fat16_noheads.img.bz2 [new file with mode: 0644]