Whamcloud - gitweb
blkid: fix ZFS device detection
authorAndreas Dilger <andreas.dilger@intel.com>
Thu, 12 Apr 2012 21:26:49 +0000 (15:26 -0600)
committerAndreas Dilger <adilger@dilger.ca>
Fri, 28 Aug 2015 17:08:54 +0000 (11:08 -0600)
commite23259c45fa776b175b0e70a641e649c8d8fcd1f
tree3def1cb564a346f51a6c0cff78876b857af43b9a
parent0de7092708f09b5bfcdc10fcf74b7413e0292827
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 <andreas.dilger@intel.com>
lib/blkid/probe.c