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>
Sat, 15 Sep 2012 17:32:59 +0000 (11:32 -0600)
commitadde001b493c55ae3da589b000ad295ddbe4a5a4
tree0b4d17ca0ef5196fd33ed105681187190c11d96b
parent232d29257b5ec4199e927b9490730a55b2d621ab
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