aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/nfsd/xdr4.h
diff options
context:
space:
mode:
authorAndy Adamson <andros@netapp.com>2009-04-03 01:27:55 -0400
committerJ. Bruce Fields <bfields@citi.umich.edu>2009-04-03 20:41:14 -0400
commit2db134eb3b39faefc7fbfb200156d175edba2f68 (patch)
treedd07afee13667410cb64dba1de3a80c54d1bd989 /include/linux/nfsd/xdr4.h
parent5282fd724b667b7d65f2e41e405a825e58a78813 (diff)
nfsd41: xdr infrastructure
Define nfsd41_dec_ops vector and add it to nfsd4_minorversion for minorversion 1. Note: nfsd4_enc_ops vector is shared for v4.0 and v4.1 since we don't need to filter out obsolete ops as this is done in the decoding phase. exchange_id, create_session, destroy_session, and sequence ops are implemented as stubs returning nfserr_opnotsupp at this stage. [was nfsd41: xdr stubs] [get rid of CONFIG_NFSD_V4_1] Signed-off-by: Benny Halevy <bhalevy@panasas.com> Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'include/linux/nfsd/xdr4.h')
-rw-r--r--include/linux/nfsd/xdr4.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/linux/nfsd/xdr4.h b/include/linux/nfsd/xdr4.h
index fd15ddc3359d..28af925c2a3d 100644
--- a/include/linux/nfsd/xdr4.h
+++ b/include/linux/nfsd/xdr4.h
@@ -344,6 +344,22 @@ struct nfsd4_write {
344 nfs4_verifier wr_verifier; /* response */ 344 nfs4_verifier wr_verifier; /* response */
345}; 345};
346 346
347struct nfsd4_exchange_id {
348 int foo; /* stub */
349};
350
351struct nfsd4_create_session {
352 int foo; /* stub */
353};
354
355struct nfsd4_sequence {
356 int foo; /* stub */
357};
358
359struct nfsd4_destroy_session {
360 int foo; /* stub */
361};
362
347struct nfsd4_op { 363struct nfsd4_op {
348 int opnum; 364 int opnum;
349 __be32 status; 365 __be32 status;
@@ -378,6 +394,12 @@ struct nfsd4_op {
378 struct nfsd4_verify verify; 394 struct nfsd4_verify verify;
379 struct nfsd4_write write; 395 struct nfsd4_write write;
380 struct nfsd4_release_lockowner release_lockowner; 396 struct nfsd4_release_lockowner release_lockowner;
397
398 /* NFSv4.1 */
399 struct nfsd4_exchange_id exchange_id;
400 struct nfsd4_create_session create_session;
401 struct nfsd4_destroy_session destroy_session;
402 struct nfsd4_sequence sequence;
381 } u; 403 } u;
382 struct nfs4_replay * replay; 404 struct nfs4_replay * replay;
383}; 405};