Whamcloud - gitweb
blkid: fix ZFS device detection
authorAndreas Dilger <adilger@whamcloud.com>
Thu, 12 Apr 2012 21:26:49 +0000 (15:26 -0600)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 29 Nov 2012 13:05:12 +0000 (06:05 -0700)
commitaab5028d8492a45ce677827bc42574204347b7f8
treee10fd0b72a8407e2b03b4cbebfff4afd12d9eee0
parenta8c5a6a44147fa4b2cc8e07599c3a5bd005a3019
blkid: fix ZFS device 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.

Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
lib/blkid/probe.c
lib/blkid/probe.h