diff options
author | Darik Horn <[email protected]> | 2011-04-11 14:49:50 -0500 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2011-04-21 09:41:01 -0700 |
commit | fa6f7d8f9d4760975ea5fe116a7366604f286195 (patch) | |
tree | 7089dfa04e86d507330ee7e67e30014ded19e2ab /include/sys/sysmacros.h | |
parent | 3dfc591ac4003d1c92159b5dfe8970f24e008f81 (diff) |
Import spl_hostid as a module parameter.
Provide a call_usermodehelper() alternative by letting the hostid be passed as
a module parameter like this:
$ modprobe spl spl_hostid=0x12345678
Internally change the spl_hostid variable to unsigned long because that is the
type that the coreutils /usr/bin/hostid returns.
Move the hostid command into GET_HOSTID_CMD for consistency with the similar
GET_KALLSYMS_ADDR_CMD invocation.
Use argv[0] instead of sh_path for consistency internally and with other Linux
drivers.
Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'include/sys/sysmacros.h')
-rw-r--r-- | include/sys/sysmacros.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sys/sysmacros.h b/include/sys/sysmacros.h index 35f7cb5c1..29dcda7fa 100644 --- a/include/sys/sysmacros.h +++ b/include/sys/sysmacros.h @@ -143,7 +143,7 @@ /* Missing globals */ extern char spl_version[16]; -extern long spl_hostid; +extern unsigned long spl_hostid; extern char hw_serial[11]; /* Missing misc functions */ |