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 <andreas.dilger@intel.com>
Wed, 24 Apr 2013 04:48:32 +0000 (22:48 -0600)
commit56ac8c6f5effc4435b5cd26d7358e0aa7c04a6f9
tree42fa6bc3a46dd4031e9d3d226570636c329caa46
parentb6fe3c51200fa51ce0afa7e80ea94fdfd3880d3f
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
lib/blkid/probe.h