NFSv4: use unique client identifiers in network namespaces
authorBenjamin Coddington <bcodding@redhat.com>
Wed, 9 Feb 2022 14:07:01 +0000 (09:07 -0500)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 25 Feb 2022 23:50:12 +0000 (18:50 -0500)
commit50c790a0b69bdc420f00f30bdf348d6c90194c78
treefa38907328107d0ab08e8f9472e3d07db8f67dc8
parent43245eca6e670ebf65908b549641c1460a9cc944
NFSv4: use unique client identifiers in network namespaces

In order to differentiate client state, assign a random uuid to the
uniquifing portion of the client identifier when a network namespace is
created.  Containers may still override this value if they wish to maintain
stable client identifiers by writing to /sys/fs/nfs/net/client/identifier,
either by udev rules or other means.

Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/sysfs.c