]> granicus.if.org Git - zfs/commit
Read spl_hostid module parameter before gethostid()
authorChunwei Chen <tuxoko@gmail.com>
Fri, 23 Jan 2015 08:05:04 +0000 (16:05 +0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 5 Feb 2015 00:44:53 +0000 (16:44 -0800)
commit53698a453d1cc318f99477fef596c476b4b0cb47
treedf07069d67116be61722e8c8713e500a61c43fd2
parentaa2ef419e46b3ad7c2ad8848b7a308a5a949aba7
Read spl_hostid module parameter before gethostid()

If spl_hostid is set via module parameter, it's likely different from
gethostid(). Therefore, the userspace tool should read it first before
falling back to gethostid().

Signed-off-by: Chunwei Chen <tuxoko@gmail.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #3034
cmd/zpool/zpool_main.c
include/libzfs.h
lib/libzfs/libzfs_status.c
lib/libzpool/kernel.c