Skip to content
Commit d02a3a2c authored by Jia He's avatar Jia He Committed by Chuck Lever
Browse files

lockd: change the proc_handler for nsm_use_hostnames



nsm_use_hostnames is a module parameter and it will be exported to sysctl
procfs. This is to let user sometimes change it from userspace. But the
minimal unit for sysctl procfs read/write it sizeof(int).
In big endian system, the converting from/to  bool to/from int will cause
error for proc items.

This patch use a new proc_handler proc_dobool to fix it.

Signed-off-by: default avatarJia He <hejianet@gmail.com>
Reviewed-by: default avatarPan Xinhui <xinhui.pan@linux.vnet.ibm.com>
[thuth: Fix typo in commit message]
Signed-off-by: default avatarThomas Huth <thuth@redhat.com>
Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
parent a2071573
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment