diff options
author | Chunwei Chen <[email protected]> | 2015-01-23 16:05:04 +0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2015-02-04 16:44:53 -0800 |
commit | 53698a453d1cc318f99477fef596c476b4b0cb47 (patch) | |
tree | df07069d67116be61722e8c8713e500a61c43fd2 /include | |
parent | aa2ef419e46b3ad7c2ad8848b7a308a5a949aba7 (diff) |
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 <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #3034
Diffstat (limited to 'include')
-rw-r--r-- | include/libzfs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/libzfs.h b/include/libzfs.h index df38d29e1..108b75f5e 100644 --- a/include/libzfs.h +++ b/include/libzfs.h @@ -350,6 +350,7 @@ typedef enum { ZPOOL_STATUS_OK } zpool_status_t; +extern unsigned long get_system_hostid(void); extern zpool_status_t zpool_get_status(zpool_handle_t *, char **, zpool_errata_t *); extern zpool_status_t zpool_import_status(nvlist_t *, char **, |