nfs41: verify CB_SEQUENCE position in callback compound
authorBenny Halevy <bhalevy@panasas.com>
Wed, 1 Apr 2009 13:23:27 +0000 (09:23 -0400)
committerBenny Halevy <bhalevy@panasas.com>
Wed, 17 Jun 2009 21:11:39 +0000 (14:11 -0700)
commit281fe15dc1d6ad46992f18b7a6644269ec5f7138
tree168baccd85401f61433c99b3f14b5b3ff833ff1d
parent4aece6a19cf7f474f15eb861ba74db4479884ce3
nfs41: verify CB_SEQUENCE position in callback compound

CB_SEQUENCE must appear first in the callback compound RPC.
If it is not the first operation NFS4ERR_SEQUENCE_POS must be returned.
If the first operation ni the CB_COMPOUND is not CB_SEQUENCE then
NFS4ERR_OP_NOT_IN_SESSION must be returned.

Signed-off-by: Ricardo Labiaga <ricardo.labiaga@netapp.com>
Signed-off-by: Benny Halevy <bhalevy@panasas.com>
[nfs41: refactor op preprocessing out of process_op]
Signed-off-by: Benny Halevy <bhalevy@panasas.com>
fs/nfs/callback_xdr.c