NFSv4: Fix OPEN w/create access mode checking
authorTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 10 Jul 2014 12:54:32 +0000 (08:54 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Sat, 12 Jul 2014 22:20:55 +0000 (18:20 -0400)
POSIX states that open("foo", O_CREAT|O_RDONLY, 000) should succeed if
the file "foo" does not already exist. With the current NFS client,
it will fail with an EACCES error because of the permissions checks in
nfs4_opendata_access().

Fix is to turn that test off if the server says that we created the file.

Reported-by: "Frank S. Filz" <ffilzlnx@mindspring.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>

No differences found