]> git.proxmox.com Git - mirror_spl-debian.git/commit
Import spl_hostid as a module parameter.
authorDarik Horn <dajhorn@vanadac.com>
Mon, 11 Apr 2011 19:49:50 +0000 (14:49 -0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 21 Apr 2011 16:41:01 +0000 (09:41 -0700)
commitfa6f7d8f9d4760975ea5fe116a7366604f286195
tree7089dfa04e86d507330ee7e67e30014ded19e2ab
parent3dfc591ac4003d1c92159b5dfe8970f24e008f81
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>
include/sys/sysmacros.h
module/spl/spl-generic.c
module/spl/spl-proc.c