NFS: Add a server capabilities NFS RPC op
authorDavid Howells <dhowells@redhat.com>
Wed, 23 Aug 2006 00:06:10 +0000 (20:06 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Sat, 23 Sep 2006 03:24:33 +0000 (23:24 -0400)
Add a set_capabilities NFS RPC op so that the server capabilities can be set.

Signed-Off-By: David Howells <dhowells@redhat.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4proc.c
include/linux/nfs_xdr.h

index de2006f754ef9fee5a2a0d7daf0eec111ddaa164..850f0851023a60c0b000f01e61e30a777992007d 100644 (file)
@@ -3790,6 +3790,7 @@ struct nfs_rpc_ops        nfs_v4_clientops = {
        .statfs         = nfs4_proc_statfs,
        .fsinfo         = nfs4_proc_fsinfo,
        .pathconf       = nfs4_proc_pathconf,
+       .set_capabilities = nfs4_server_capabilities,
        .decode_dirent  = nfs4_decode_dirent,
        .read_setup     = nfs4_proc_read_setup,
        .read_done      = nfs4_read_done,
index 26879771831d1eeb6883bac79961dbdb05fd5461..dd9ae6761f7170a328f3419b4fc3df711a38ef4b 100644 (file)
@@ -809,6 +809,7 @@ struct nfs_rpc_ops {
                            struct nfs_fsinfo *);
        int     (*pathconf) (struct nfs_server *, struct nfs_fh *,
                             struct nfs_pathconf *);
+       int     (*set_capabilities)(struct nfs_server *, struct nfs_fh *);
        u32 *   (*decode_dirent)(u32 *, struct nfs_entry *, int plus);
        void    (*read_setup)   (struct nfs_read_data *);
        int     (*read_done)  (struct rpc_task *, struct nfs_read_data *);