diff options
author | J. Bruce Fields <bfields@redhat.com> | 2012-11-30 17:24:18 -0500 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2012-12-03 09:43:51 -0500 |
commit | e5f9570319771bb0a5afc792b34fbd5564b935c8 (patch) | |
tree | 9413da43f78bdfbeb97027a49663cc0efac22efc /fs/nfsd | |
parent | f3c7521fe53a7892d8c8c4715f7c0f4add7b2e19 (diff) |
nfsd4: discard some unused nfsd4_verify xdr code
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd')
-rw-r--r-- | fs/nfsd/nfs4xdr.c | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c index b775366a0a68..3bf8a9d7f217 100644 --- a/fs/nfsd/nfs4xdr.c +++ b/fs/nfsd/nfs4xdr.c | |||
@@ -1106,31 +1106,14 @@ nfsd4_decode_setclientid_confirm(struct nfsd4_compoundargs *argp, struct nfsd4_s | |||
1106 | static __be32 | 1106 | static __be32 |
1107 | nfsd4_decode_verify(struct nfsd4_compoundargs *argp, struct nfsd4_verify *verify) | 1107 | nfsd4_decode_verify(struct nfsd4_compoundargs *argp, struct nfsd4_verify *verify) |
1108 | { | 1108 | { |
1109 | #if 0 | ||
1110 | struct nfsd4_compoundargs save = { | ||
1111 | .p = argp->p, | ||
1112 | .end = argp->end, | ||
1113 | .rqstp = argp->rqstp, | ||
1114 | }; | ||
1115 | u32 ve_bmval[2]; | ||
1116 | struct iattr ve_iattr; /* request */ | ||
1117 | struct nfs4_acl *ve_acl; /* request */ | ||
1118 | #endif | ||
1119 | DECODE_HEAD; | 1109 | DECODE_HEAD; |
1120 | 1110 | ||
1121 | if ((status = nfsd4_decode_bitmap(argp, verify->ve_bmval))) | 1111 | if ((status = nfsd4_decode_bitmap(argp, verify->ve_bmval))) |
1122 | goto out; | 1112 | goto out; |
1123 | 1113 | ||
1124 | /* For convenience's sake, we compare raw xdr'd attributes in | 1114 | /* For convenience's sake, we compare raw xdr'd attributes in |
1125 | * nfsd4_proc_verify; however we still decode here just to return | 1115 | * nfsd4_proc_verify */ |
1126 | * correct error in case of bad xdr. */ | 1116 | |
1127 | #if 0 | ||
1128 | status = nfsd4_decode_fattr(ve_bmval, &ve_iattr, &ve_acl); | ||
1129 | if (status == nfserr_inval) { | ||
1130 | status = nfserrno(status); | ||
1131 | goto out; | ||
1132 | } | ||
1133 | #endif | ||
1134 | READ_BUF(4); | 1117 | READ_BUF(4); |
1135 | READ32(verify->ve_attrlen); | 1118 | READ32(verify->ve_attrlen); |
1136 | READ_BUF(verify->ve_attrlen); | 1119 | READ_BUF(verify->ve_attrlen); |