]> git.proxmox.com Git - mirror_zfs.git/commit
Report MMP_STATE_NO_HOSTID immediately
authorOlaf Faaland <faaland1@llnl.gov>
Sat, 15 Jul 2017 01:15:00 +0000 (18:15 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 25 Jul 2017 17:22:28 +0000 (13:22 -0400)
commite889f0f520971fc2688189cdbe0efde2ccc8ec65
treeb62817ae612329e2a6dedcc548fb73cf213b190d
parent0582e403221008480657a88e8f50aecc88397c80
Report MMP_STATE_NO_HOSTID immediately

There is no need to perform the activity check before detecting that the
user must set the system hostid, because the pool's multihost property
is on, but spa_get_hostid() returned 0.  The initial call to
vdev_uberblock_load() provided the information required.

Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Olaf Faaland <faaland1@llnl.gov>
Closes #6388
module/zfs/spa.c
tests/zfs-tests/tests/functional/mmp/mmp_inactive_import.ksh