Re: [PATCH 0/2] Fix /proc/sys/fs/nfs/nsm_use_hostnames on big endian machines

From
Jia He <hidden>
Date
2021-08-04 02:13:15
Also in
linux-nfs, linux-s390, lkml
Reply to
Thomas Huth, 2021-08-03
On 2021/8/3 18:59, Thomas Huth wrote:
There is an endianess problem with /proc/sys/fs/nfs/nsm_use_hostnames
(which can e.g. be seen on an s390x host) :

  # modprobe lockd nsm_use_hostnames=1
  # cat /proc/sys/fs/nfs/nsm_use_hostnames
  16777216

The nsm_use_hostnames variable is declared as "bool" which is required
for the correct type for the module parameter. However, this does not
work correctly with the entry in the /proc filesystem since this
currently requires "int".

Jia He already provided patches for this problem a couple of years ago,
but apparently they felt through the cracks and never got merged. So
here's a rebased version to finally fix this issue.

Buglink: https://bugzilla.redhat.com/show_bug.cgi?id=1764075

Jia He (2):
   sysctl: introduce new proc handler proc_dobool
   lockd: change the proc_handler for nsm_use_hostnames
Thanks for picking them up ;-)

---
Cheers,
Justin (Jia He)
Thread (11 messages) 11 messages, 5 authors, last reply 2021-09-16
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help