ZPOOL_CONFIG_HOSTID
(void) nvlist_lookup_uint64(config, ZPOOL_CONFIG_HOSTID, &hostid);
if (nvlist_exists(config, ZPOOL_CONFIG_HOSTID))
ZPOOL_CONFIG_HOSTID);
(void) nvlist_lookup_uint64(config, ZPOOL_CONFIG_HOSTID, &hostid);
ZPOOL_CONFIG_HOSTID, &hostid) == 0) {
ZPOOL_CONFIG_HOSTID, hostid);
(void) nvlist_remove(config, ZPOOL_CONFIG_HOSTID,
verify(nvlist_add_uint64(config, ZPOOL_CONFIG_HOSTID,
if (nvlist_exists(label, ZPOOL_CONFIG_HOSTID))
hostid = fnvlist_lookup_uint64(label, ZPOOL_CONFIG_HOSTID);
if (nvlist_exists(mmp_label, ZPOOL_CONFIG_HOSTID)) {
ZPOOL_CONFIG_HOSTID);
ZPOOL_CONFIG_HOSTID, &hostid) == 0) {
fnvlist_add_uint64(config, ZPOOL_CONFIG_HOSTID, hostid);