HomeFreeBSD

Import spl_hostid as a module parameter.

Description

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>

Details

Provenance
Darik Horn <dajhorn@vanadac.com>Authored on Apr 11 2011, 7:49 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Apr 21 2011, 4:41 PM
Parents
rG3dfc591ac400: Linux 2.6.39 compat, zlib_deflate_workspacesize()
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGfa6f7d8f9d47: Import spl_hostid as a module parameter. (authored by Darik Horn <dajhorn@vanadac.com>).Apr 21 2011, 4:41 PM