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, 1 Dec 2012 19:47:15 +0000 (12:47 -0700)
commit6babdd0d8013b7f9da83c95ec80bc2dc338d0077
tree37ab80781fe35ad0c0bb62c7abc972a092b7aa76
parent93ca23572eb599804d3f518a60d8e5286da4bb98
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