nfsd: add a "GetVersion" upcall for nfsdcld
authorScott Mayhew <smayhew@redhat.com>
Mon, 9 Sep 2019 20:10:30 +0000 (16:10 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 10 Sep 2019 13:26:33 +0000 (09:26 -0400)
commit11a60d159259dbadf9188534b508e5003769af61
tree21b922564de4770ccdcdb9a197c465a6d14af2ff
parentbbf2f098838aa86cee240a7a11486e0601d56a3f
nfsd: add a "GetVersion" upcall for nfsdcld

Add a "GetVersion" upcall to allow nfsd to determine the maximum upcall
version that the nfsdcld userspace daemon supports.  If the daemon
responds with -EOPNOTSUPP, then we know it only supports v1.

Signed-off-by: Scott Mayhew <smayhew@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4recover.c
include/uapi/linux/nfsd/cld.h