summaryrefslogtreecommitdiffstats
path: root/systemd/60-nfs.rules
blob: 188423c1d2e34a4b16e2d3ff4b79354c56331445 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Ensure all NFS systctl settings get applied when modules load

# sunrpc module supports "sunrpc.*" sysctls
ACTION=="add", SUBSYSTEM=="module", KERNEL=="sunrpc", \
  RUN+="/sbin/sysctl -q --pattern ^sunrpc --system"

# rpcrdma module supports sunrpc.svc_rdma.*
ACTION=="add", SUBSYSTEM=="module", KERNEL=="rpcrdma", \
  RUN+="/sbin/sysctl -q --pattern ^sunrpc.svc_rdma --system"

# lockd module supports "fs.nfs.nlm*" and "fs.nfs.nsm*" sysctls
ACTION=="add", SUBSYSTEM=="module", KERNEL=="lockd", \
  RUN+="/sbin/sysctl -q --pattern ^fs.nfs.n[sl]m --system"

# nfsv4 module supports "fs.nfs.*" sysctls (nfs_callback_tcpport and idmap_cache_timeout)
ACTION=="add", SUBSYSTEM=="module", KERNEL=="nfsv4", \
  RUN+="/sbin/sysctl -q --pattern ^fs.nfs.(nfs_callback_tcpport|idmap_cache_timeout) --system"

# nfs module supports "fs.nfs.*" sysctls
ACTION=="add", SUBSYSTEM=="module", KERNEL=="nfs", \
  RUN+="/sbin/sysctl -q --pattern ^fs.nfs --system"