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 <andreas.dilger@intel.com>
Wed, 10 Sep 2014 23:08:19 +0000 (17:08 -0600)
commit8c722a7d09f46089ce6d7c2a1cdbd427386f5def
tree7dc0f973a5b7ced5d6ebb7c62fe84cbeba340b7f
parentc621c0b7f0f4df8c82b2573400a2760793c823cb
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