Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dCache
nfs4j
Commits
d34b01fe
Commit
d34b01fe
authored
Nov 22, 2011
by
Tigran Mkrtchyan
☕
Browse files
nfsv4: updated comment and variable typo fix
parent
67622181
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/org/dcache/chimera/nfs/v4/CompoundContext.java
View file @
d34b01fe
...
...
@@ -58,7 +58,7 @@ public class CompoundContext {
private
int
_slotId
;
private
boolean
_cacheThis
;
private
final
int
_totalOperationsCount
;
private
int
_curretOpPosition
=
-
1
;
private
int
_curre
n
tOpPosition
=
-
1
;
/**
* Create context of COUMPOUND request.
...
...
@@ -242,7 +242,7 @@ public class CompoundContext {
}
public
int
getOperationPosition
()
{
return
_curretOpPosition
;
return
_curre
n
tOpPosition
;
}
public
int
getTotalOperationCount
()
{
...
...
@@ -250,8 +250,8 @@ public class CompoundContext {
}
public
void
nextOperation
()
{
assert
_curretOpPosition
<
_totalOperationsCount
;
_curretOpPosition
++;
assert
_curre
n
tOpPosition
<
_totalOperationsCount
;
_curre
n
tOpPosition
++;
}
public
ServerIdProvider
getServerIdProvider
()
{
...
...
src/org/dcache/chimera/nfs/v4/NFSServerV41.java
View file @
d34b01fe
...
...
@@ -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
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment