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 <adilger@whamcloud.com>
Tue, 29 May 2012 03:14:08 +0000 (21:14 -0600)
commitf93049cb38ba751b20af139aee95e3ae34749a41
tree1c22289d3f76a42fabb51dac0c2d44aaee32c90c
parent2e51d27a8941f60ec326e36b2b47203ff75afb43
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 <adilger@whamcloud.com>
lib/blkid/probe.c
lib/blkid/probe.h