]> err.no Git - util-linux/commit
libblkid: fix ZSF detection
authorAndreas Dilger <adilger@sun.com>
Wed, 17 Feb 2010 09:21:27 +0000 (10:21 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 22 Feb 2010 08:42:56 +0000 (09:42 +0100)
commit00edcf5543b2fd402a2e2981266d714bdaef7098
treebf49cbae5fd6ceeb4ffdd059dcb5e15edd625faa
parent5bcf9f0c81fe1a28902dd3893faca1ff494a8ef8
libblkid: fix ZSF detection

Fix the ZFS device detection by looking at multiple uberblocks to see
if any are present, rather than looking for the ZFS boot block which
is not always present.

There may be up to 128 uberblocks, but the first 4 are not written to
disk on a newly-formatted filesystem so check several of them at
different offsets within the uberblock array.

[kzak@redhat.com: - port e2fsprogs patch to util-linux-ng]

Signed-off-by: Andreas Dilger <adilger@sun.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
shlibs/blkid/src/superblocks/zfs.c
tests/expected/blkid/low-probe-zfs