nfsd4: add file to display list of client's opens
authorJ. Bruce Fields <bfields@redhat.com>
Mon, 22 Apr 2019 19:26:23 +0000 (15:26 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 3 Jul 2019 21:52:50 +0000 (17:52 -0400)
commit78599c42ae3c70300a38b0d1271a85bc9f2d704a
treef63486cb43f5522a91a8a2f02365ffe7b9eb8e5f
parent169319f13cb874e90471463ba4a8d5689c23de2d
nfsd4: add file to display list of client's opens

Add a nfsd/clients/#/opens file to list some information about all the
opens held by the given client, including open modes, device numbers,
inode numbers, and open owners.

Open owners are totally opaque but seem to sometimes have some useful
ascii strings included, so passing through printable ascii characters
and escaping the rest seems useful while still being machine-readable.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c