commit | f3792d63d2a377b7cbe91a204e9582c4cf831eb3 | [log] [tgz] |
---|---|---|
author | Trond Myklebust <trond.myklebust@primarydata.com> | Thu Jul 10 08:54:32 2014 -0400 |
committer | Trond Myklebust <trond.myklebust@primarydata.com> | Sat Jul 12 18:20:55 2014 -0400 |
tree | e1104771d92dd40473ce9210e0d7f3233d327b9b | |
parent | 31434f496abb9f3410b10f541462fe58613dd3ad [diff] |
NFSv4: Fix OPEN w/create access mode checking 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>