Family nfsd netlink specification¶
Summary¶
NFSD configuration over generic netlink.
Operations¶
rpc-status-get¶
dump pending nfsd rpc
- attribute-set:
- dump:
- reply
- attributes:
[
xid,flags,prog,version,proc,service-time,saddr4,daddr4,saddr6,daddr6,sport,dport,compound-ops]
threads-set¶
set the maximum number of running threads
- attribute-set:
- flags:
[
admin-perm]- do:
- request
- attributes:
[
threads,gracetime,leasetime,scope,min-threads,fh-key]
threads-get¶
get the maximum number of running threads
- attribute-set:
- do:
- reply
- attributes:
[
threads,gracetime,leasetime,scope,min-threads]
version-set¶
set nfs enabled versions
- attribute-set:
- flags:
[
admin-perm]- do:
- request
- attributes:
[
version]
version-get¶
get nfs enabled versions
- attribute-set:
- do:
- reply
- attributes:
[
version]
listener-set¶
set nfs running sockets
- attribute-set:
- flags:
[
admin-perm]- do:
- request
- attributes:
[
addr]
listener-get¶
get nfs running listeners
- attribute-set:
- do:
- reply
- attributes:
[
addr]
pool-mode-set¶
set the current server pool-mode
- attribute-set:
- flags:
[
admin-perm]- do:
- request
- attributes:
[
mode]
pool-mode-get¶
get info about server pool-mode
- attribute-set:
- do:
- reply
- attributes:
[
mode,npools]
cache-notify¶
Notification that there are cache requests that need servicing
- attribute-set:
- mcgrp:
exportd
- event:
- attributes:
[
cache-type]
svc-export-get-reqs¶
Dump all pending svc_export requests
- attribute-set:
- flags:
[
admin-perm]- dump:
- reply
- attributes:
[
requests]
svc-export-set-reqs¶
Respond to one or more svc_export requests
- attribute-set:
- flags:
[
admin-perm]- do:
- request
- attributes:
[
requests]
expkey-get-reqs¶
Dump all pending expkey requests
- attribute-set:
- flags:
[
admin-perm]- dump:
- reply
- attributes:
[
requests]
expkey-set-reqs¶
Respond to one or more expkey requests
- attribute-set:
- flags:
[
admin-perm]- do:
- request
- attributes:
[
requests]
cache-flush¶
Flush nfsd caches (svc_export and/or expkey)
- attribute-set:
- flags:
[
admin-perm]- do:
- request
- attributes:
[
mask]
Multicast groups¶
none
exportd
Definitions¶
cache-type¶
- type:
flags
- entries:
svc_exportexpkey
export-flags¶
- type:
flags
- doc:
These flags are ordered to match the NFSEXP_* flags in include/linux/nfsd/export.h
- entries:
readonlyinsecure-portrootsquashallsquashasyncgathered-writesnoreaddirplussecurity-labelsign-fhnohidenosubtreechecknoauthnlmmsnfsfsidcrossmountnoaclv4rootpnfs
xprtsec-mode¶
- type:
flags
- doc:
These flags are ordered to match the NFSEXP_XPRTSEC_* flags in include/linux/nfsd/export.h
- entries:
nonetlsmtls
Attribute sets¶
cache-notify¶
cache-type (u32)¶
- enum:
rpc-status¶
xid (u32)¶
- byte-order:
big-endian
flags (u32)¶
prog (u32)¶
version (u8)¶
proc (u32)¶
service-time (s64)¶
pad (pad)¶
saddr4 (u32)¶
- byte-order:
big-endian
- display-hint:
ipv4
daddr4 (u32)¶
- byte-order:
big-endian
- display-hint:
ipv4
saddr6 (binary)¶
- display-hint:
ipv6
daddr6 (binary)¶
- display-hint:
ipv6
sport (u16)¶
- byte-order:
big-endian
dport (u16)¶
- byte-order:
big-endian
compound-ops (u32)¶
- multi-attr:
True
server¶
threads (u32)¶
- multi-attr:
True
gracetime (u32)¶
leasetime (u32)¶
scope (string)¶
min-threads (u32)¶
fh-key (binary)¶
version¶
major (u32)¶
minor (u32)¶
enabled (flag)¶
server-proto¶
version (nest)¶
- nested-attributes:
- multi-attr:
True
sock¶
addr (binary)¶
transport-name (string)¶
server-sock¶
addr (nest)¶
- nested-attributes:
- multi-attr:
True
pool-mode¶
mode (string)¶
npools (u32)¶
fslocation¶
host (string)¶
path (string)¶
fslocations¶
location (nest)¶
- nested-attributes:
- multi-attr:
True
auth-flavor¶
pseudoflavor (u32)¶
flags (u32)¶
- enum:
- enum-as-flags:
True
svc-export¶
seqno (u64)¶
client (string)¶
path (string)¶
negative (flag)¶
expiry (u64)¶
anon-uid (u32)¶
anon-gid (u32)¶
fslocations (nest)¶
- nested-attributes:
uuid (binary)¶
secinfo (nest)¶
- nested-attributes:
- multi-attr:
True
xprtsec (u32)¶
- enum:
- multi-attr:
True
flags (u32)¶
- enum:
- enum-as-flags:
True
fsid (s32)¶
svc-export-reqs¶
requests (nest)¶
- nested-attributes:
- multi-attr:
True
expkey¶
seqno (u64)¶
client (string)¶
fsidtype (u8)¶
fsid (binary)¶
negative (flag)¶
expiry (u64)¶
path (string)¶
expkey-reqs¶
requests (nest)¶
- nested-attributes:
- multi-attr:
True
cache-flush¶
mask (u32)¶
- enum:
- enum-as-flags:
True