Skip to content

How to deal with concurrency #126

Answered by kofemann
nsoubelet asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

We are always happy to see that our works are also useful in other projects!

Coming to the questions. NFS4.0 protocol has a concept of Share reservations, which defines which
concurrent access is allowed. There is share_access and share_deny. The share_access
specifies the access mode which is wanted, i.e. open for read or open for write, while
deny defines which concurrent access is allowed, i.e. other readers or other writers.
The POSIX standard doesn't provide a way to specify share_deny, thus, typically, the
NFS clients can't specify it. However, nfs4j supports it. The quick-and-dirty workaround
will be to set _args.opopen.share_deny.value to OPEN4_SHARE_DENY_BOTH
if share_access is

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nsoubelet
Comment options

Answer selected by nsoubelet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants