NFS: Make all of /sys/fs/nfs network-namespace unique
authorBenjamin Coddington <bcodding@redhat.com>
Thu, 15 Jun 2023 18:07:25 +0000 (14:07 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 19 Jun 2023 18:59:51 +0000 (14:59 -0400)
commite96f9268eea626126021641eefeed02f8669f584
treef053c06918c5b97ff6654ab324429934e0c75932
parent943aef2dbcf75f81c4574903131bd9559cee4fd1
NFS: Make all of /sys/fs/nfs network-namespace unique

Expand the NFS network-namespaced sysfs from /sys/fs/nfs/net down one level
into /sys/fs/nfs by moving the "net" kobject onto struct
nfs_netns_client and setting it up during network namespace init.

This prepares the way for superblock kobjects within /sys/fs/nfs that will
only be visible to matching network namespaces.

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