mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
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 <behlendorf1@llnl.gov>
This commit is contained in:
committed by
Brian Behlendorf
parent
3dfc591ac4
commit
fa6f7d8f9d
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user