aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfs4xdr.c
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@redhat.com>2010-12-16 09:51:13 -0500
committerJ. Bruce Fields <bfields@redhat.com>2010-12-17 15:48:25 -0500
commit04f4ad16b231abbfde34c762697ad035a3af0b5f (patch)
tree43e3adde9776d9bb8a2bcf70a7ba7a721d1ac06a /fs/nfsd/nfs4xdr.c
parent0ff7ab46719a9c1e264b8d8e85416d59737ff13c (diff)
nfsd4: implement secinfo_no_name
Implementation of this operation is mandatory for NFSv4.1. Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/nfs4xdr.c')
-rw-r--r--fs/nfsd/nfs4xdr.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c
index 71d7d339e44a..b543b2410b54 100644
--- a/fs/nfsd/nfs4xdr.c
+++ b/fs/nfsd/nfs4xdr.c
@@ -847,6 +847,17 @@ nfsd4_decode_secinfo(struct nfsd4_compoundargs *argp,
847} 847}
848 848
849static __be32 849static __be32
850nfsd4_decode_secinfo_no_name(struct nfsd4_compoundargs *argp,
851 struct nfsd4_secinfo_no_name *sin)
852{
853 DECODE_HEAD;
854
855 READ_BUF(4);
856 READ32(sin->sin_style);
857 DECODE_TAIL;
858}
859
860static __be32
850nfsd4_decode_setattr(struct nfsd4_compoundargs *argp, struct nfsd4_setattr *setattr) 861nfsd4_decode_setattr(struct nfsd4_compoundargs *argp, struct nfsd4_setattr *setattr)
851{ 862{
852 __be32 status; 863 __be32 status;
@@ -1358,7 +1369,7 @@ static nfsd4_dec nfsd41_dec_ops[] = {
1358 [OP_LAYOUTCOMMIT] = (nfsd4_dec)nfsd4_decode_notsupp, 1369 [OP_LAYOUTCOMMIT] = (nfsd4_dec)nfsd4_decode_notsupp,
1359 [OP_LAYOUTGET] = (nfsd4_dec)nfsd4_decode_notsupp, 1370 [OP_LAYOUTGET] = (nfsd4_dec)nfsd4_decode_notsupp,
1360 [OP_LAYOUTRETURN] = (nfsd4_dec)nfsd4_decode_notsupp, 1371 [OP_LAYOUTRETURN] = (nfsd4_dec)nfsd4_decode_notsupp,
1361 [OP_SECINFO_NO_NAME] = (nfsd4_dec)nfsd4_decode_notsupp, 1372 [OP_SECINFO_NO_NAME] = (nfsd4_dec)nfsd4_decode_secinfo_no_name,
1362 [OP_SEQUENCE] = (nfsd4_dec)nfsd4_decode_sequence, 1373 [OP_SEQUENCE] = (nfsd4_dec)nfsd4_decode_sequence,
1363 [OP_SET_SSV] = (nfsd4_dec)nfsd4_decode_notsupp, 1374 [OP_SET_SSV] = (nfsd4_dec)nfsd4_decode_notsupp,
1364 [OP_TEST_STATEID] = (nfsd4_dec)nfsd4_decode_notsupp, 1375 [OP_TEST_STATEID] = (nfsd4_dec)nfsd4_decode_notsupp,
@@ -3162,7 +3173,7 @@ static nfsd4_enc nfsd4_enc_ops[] = {
3162 [OP_LAYOUTCOMMIT] = (nfsd4_enc)nfsd4_encode_noop, 3173 [OP_LAYOUTCOMMIT] = (nfsd4_enc)nfsd4_encode_noop,
3163 [OP_LAYOUTGET] = (nfsd4_enc)nfsd4_encode_noop, 3174 [OP_LAYOUTGET] = (nfsd4_enc)nfsd4_encode_noop,
3164 [OP_LAYOUTRETURN] = (nfsd4_enc)nfsd4_encode_noop, 3175 [OP_LAYOUTRETURN] = (nfsd4_enc)nfsd4_encode_noop,
3165 [OP_SECINFO_NO_NAME] = (nfsd4_enc)nfsd4_encode_noop, 3176 [OP_SECINFO_NO_NAME] = (nfsd4_enc)nfsd4_encode_secinfo,
3166 [OP_SEQUENCE] = (nfsd4_enc)nfsd4_encode_sequence, 3177 [OP_SEQUENCE] = (nfsd4_enc)nfsd4_encode_sequence,
3167 [OP_SET_SSV] = (nfsd4_enc)nfsd4_encode_noop, 3178 [OP_SET_SSV] = (nfsd4_enc)nfsd4_encode_noop,
3168 [OP_TEST_STATEID] = (nfsd4_enc)nfsd4_encode_noop, 3179 [OP_TEST_STATEID] = (nfsd4_enc)nfsd4_encode_noop,