]> 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>
Wed, 17 Feb 2010 09:23:55 +0000 (10:23 +0100)
commite54a76ca076625b1883ddf0595162eb8de81d5d1
treee922e7dc9202bcd423730447f0ab2aaff39cc264
parent98e9ff610ed0a3a80a7478336acff99133199375
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