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, 17 Jul 2014 07:00:15 +0000 (01:00 -0600)
commitdb1a41acf2a54c23ff419bf02efce4ba07cae2f3
treee5389ba22179daa779c1481966f1d5853f513be4
parenta0d24f90027dc0db2733f2901426b7c24fbaf05a
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