]> granicus.if.org Git - zfs/commit
Let `zpool import` ignore a missing hostid record.
authorDarik Horn <dajhorn@vanadac.com>
Mon, 13 Oct 2014 03:57:49 +0000 (22:57 -0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 17 Oct 2014 21:59:05 +0000 (14:59 -0700)
commitd94fd5f0def2fbcb720647acac79ae75e2b9fa3b
tree44765087069d477abe2efa88a868c0b59ffad8fe
parent33074f2254db76f7237e5a29877558ef920ae325
Let `zpool import` ignore a missing hostid record.

Change the zpool program to skip its hostid mismatch check in the
same way that libzfs already does.

Invoked imports fail if the ZPOOL_CONFIG_HOSTID nvpair is missing in
the /etc/zfs/zpool.cache file, which can happen as of the /etc/hostid
deprecation in commit zfsonlinux/spl@acf0ade362cb8b26d67770114ee6fa17816e6b65.

Signed-off-by: Darik Horn <dajhorn@vanadac.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #2794
cmd/zpool/zpool_main.c