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>
Fri, 21 Mar 2014 09:54:43 +0000 (03:54 -0600)
commitee42550f71023e39981237603554fb1b0011db0b
tree52a6ca04df69e5300abe06bb0c4a30be9e9bc31b
parent1eadd77c2d47a795baf2ea312624b071f4093d84
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