Commit d34b01fe authored by Tigran Mkrtchyan's avatar Tigran Mkrtchyan
Browse files

nfsv4: updated comment and variable typo fix

parent 67622181
......@@ -58,7 +58,7 @@ public class CompoundContext {
private int _slotId;
private boolean _cacheThis;
private final int _totalOperationsCount;
private int _curretOpPosition = -1;
private int _currentOpPosition = -1;
/**
* Create context of COUMPOUND request.
......@@ -242,7 +242,7 @@ public class CompoundContext {
}
public int getOperationPosition() {
return _curretOpPosition;
return _currentOpPosition;
}
public int getTotalOperationCount() {
......@@ -250,8 +250,8 @@ public class CompoundContext {
}
public void nextOperation() {
assert _curretOpPosition < _totalOperationsCount;
_curretOpPosition ++;
assert _currentOpPosition < _totalOperationsCount;
_currentOpPosition ++;
}
public ServerIdProvider getServerIdProvider() {
......
......@@ -167,12 +167,14 @@ public class NFSServerV41 extends nfs4_prot_NFS4_PROGRAM_ServerStub {
*
* from NFSv4.1 spec:
*
* This operation MUST appear as the first operation of any COMPOUND in which it appears.
* The error NFS4ERR_SEQUENCE_POS will be returned when if it is found in any position in
* a COMPOUND beyond the first. Operations other than SEQUENCE, BIND_CONN_TO_SESSION,
* EXCHANGE_ID, CREATE_SESSION, and DESTROY_SESSION, may not appear as the first operation
* in a COMPOUND. Such operations will get the error NFS4ERR_OP_NOT_IN_SESSION if they do
* appear at the start of a COMPOUND.
* SEQUENCE MUST appear as the first operation of any COMPOUND in which
* it appears. The error NFS4ERR_SEQUENCE_POS will be returned when it
* is found in any position in a COMPOUND beyond the first. Operations
* other than SEQUENCE, BIND_CONN_TO_SESSION, EXCHANGE_ID,
* CREATE_SESSION, and DESTROY_SESSION, MUST NOT appear as the first
* operation in a COMPOUND. Such operations MUST yield the error
* NFS4ERR_OP_NOT_IN_SESSION if they do appear at the start of a
* COMPOUND.
*
*/
private static void checkOpPosition(int opCode, int position) throws ChimeraNFSException {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment