diff options
author | Benny Halevy <bhalevy@panasas.com> | 2009-04-03 01:28:38 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@citi.umich.edu> | 2009-04-03 20:41:19 -0400 |
commit | e10e0cfc2f27364c73b28adbd3c8688d97049e73 (patch) | |
tree | bc674e4140ea34b7893c14425ad43a930655743c /fs/nfsd/nfs4xdr.c | |
parent | bf864a31d50e3e94d6e76537b97d664913906ff8 (diff) |
nfsd41: destroy_session operation
Implement the destory_session operation confoming to
http://tools.ietf.org/html/draft-ietf-nfsv4-minorversion1-26
[use sessionid_lock spin lock]
Signed-off-by: Benny Halevy <bhalevy@panasas.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'fs/nfsd/nfs4xdr.c')
-rw-r--r-- | fs/nfsd/nfs4xdr.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c index 64bc2150a6fa..c6a726d04efd 100644 --- a/fs/nfsd/nfs4xdr.c +++ b/fs/nfsd/nfs4xdr.c | |||
@@ -1207,7 +1207,11 @@ static __be32 | |||
1207 | nfsd4_decode_destroy_session(struct nfsd4_compoundargs *argp, | 1207 | nfsd4_decode_destroy_session(struct nfsd4_compoundargs *argp, |
1208 | struct nfsd4_destroy_session *destroy_session) | 1208 | struct nfsd4_destroy_session *destroy_session) |
1209 | { | 1209 | { |
1210 | return nfserr_opnotsupp; /* stub */ | 1210 | DECODE_HEAD; |
1211 | READ_BUF(NFS4_MAX_SESSIONID_LEN); | ||
1212 | COPYMEM(destroy_session->sessionid.data, NFS4_MAX_SESSIONID_LEN); | ||
1213 | |||
1214 | DECODE_TAIL; | ||
1211 | } | 1215 | } |
1212 | 1216 | ||
1213 | static __be32 | 1217 | static __be32 |
@@ -2971,7 +2975,6 @@ static __be32 | |||
2971 | nfsd4_encode_destroy_session(struct nfsd4_compoundres *resp, int nfserr, | 2975 | nfsd4_encode_destroy_session(struct nfsd4_compoundres *resp, int nfserr, |
2972 | struct nfsd4_destroy_session *destroy_session) | 2976 | struct nfsd4_destroy_session *destroy_session) |
2973 | { | 2977 | { |
2974 | /* stub */ | ||
2975 | return nfserr; | 2978 | return nfserr; |
2976 | } | 2979 | } |
2977 | 2980 | ||