aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfs4xdr.c
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@redhat.com>2011-10-19 11:52:12 -0400
committerJ. Bruce Fields <bfields@redhat.com>2011-10-19 11:52:12 -0400
commit8b289b2c2355c3bea75f3e499b4aa251a3191382 (patch)
tree1811962d5409e5585d9e21921080bf007dfe554b /fs/nfsd/nfs4xdr.c
parenta8d86cd75b709a9c9402c46674ea188493c53901 (diff)
nfsd4: implement new 4.1 open reclaim types
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/nfs4xdr.c')
-rw-r--r--fs/nfsd/nfs4xdr.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c
index 645a0a9d8073..fdc09a52cd8d 100644
--- a/fs/nfsd/nfs4xdr.c
+++ b/fs/nfsd/nfs4xdr.c
@@ -803,6 +803,19 @@ nfsd4_decode_open(struct nfsd4_compoundargs *argp, struct nfsd4_open *open)
803 if ((status = check_filename(open->op_fname.data, open->op_fname.len, nfserr_inval))) 803 if ((status = check_filename(open->op_fname.data, open->op_fname.len, nfserr_inval)))
804 return status; 804 return status;
805 break; 805 break;
806 case NFS4_OPEN_CLAIM_FH:
807 case NFS4_OPEN_CLAIM_DELEG_PREV_FH:
808 if (argp->minorversion < 1)
809 goto xdr_error;
810 /* void */
811 break;
812 case NFS4_OPEN_CLAIM_DELEG_CUR_FH:
813 if (argp->minorversion < 1)
814 goto xdr_error;
815 status = nfsd4_decode_stateid(argp, &open->op_delegate_stateid);
816 if (status)
817 return status;
818 break;
806 default: 819 default:
807 goto xdr_error; 820 goto xdr_error;
808 } 821 }