NFS: Add sysfs support for per-container identifier
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 30 Jan 2019 02:40:10 +0000 (21:40 -0500)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Sat, 6 Jul 2019 18:54:49 +0000 (14:54 -0400)
commitbf11fbdb20b385157b046ea7781f04d0c62554a3
treefc24ca63f5e1529f713cc9243716dfc45075bd36
parent10b7a70cbb81a62353f763c3343ac0c48410696f
NFS: Add sysfs support for per-container identifier

In order to identify containers to the NFS client, we add a per-net
sysfs attribute that udev can fill with the appropriate identifier.
The identifier could be a unique hostname, but in most cases it
will probably be a persisted uuid.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/client.c
fs/nfs/netns.h
fs/nfs/sysfs.c
fs/nfs/sysfs.h