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>
Thu, 4 Jun 2015 19:28:03 +0000 (13:28 -0600)
commit2ee2a17161d970c4bf18f757a828b4cf486f6abb
treeab974041b3061a0b515d0d9a465cc4c5cc5ea195
parentfef20e0361069795e3e64fd5aed249c72e9e1dff
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