Allow fetching the pool from the device at mount
authorBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 25 Jun 2013 22:43:09 +0000 (15:43 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 26 Jun 2013 22:20:09 +0000 (15:20 -0700)
commit0c1171dcb5c50f3a03c60f4346209c23a2b5ef86
treec656bfde33dbd89cf4b775eef412c66161d87acc
parent389cf730cedd42dd1ef653e9358635c114e458d5
Allow fetching the pool from the device at mount

To simplify integration with the xfstests test suite the
mount.zfs helper has been extended.  When passed a block
device (/dev/sdX) to mount, instead of a pool/dataset,
the pool name will be read from any existing zfs label
and used.  This allows you to mount the root dataset of
a zfs filesystem by specifing any of the member vdevs.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
cmd/mount_zfs/mount_zfs.c