You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When opening a file with O_EXCL flag, nfs4j always receives 0000 filemode, making subsequent writes on this file failing. There's an easy reproduction case with inplace sed.
test.txt
test
test.sh
#!/bin/bash
sed -i 's/test/hello' test.txt
Using trace gives more information on what's hapening from the NFS client.
trace.sh
#!/bin/bash
strace -f -e trace=file test.sh
It shows this line, that should it should be created with 0600 flag.
Without umask invocation, it just work as expected over NFS, but with umask invocation it fails.
Toilal
changed the title
I/O Error when opening files with O_EXCL flag (nfs 4.1)
I/O Error when opening files with custom process umask (nfs 4.1)
Feb 7, 2019
Toilal
changed the title
I/O Error when opening files with custom process umask (nfs 4.1)
I/O Error when opening files with custom process umask
Feb 7, 2019
When opening a file with O_EXCL flag, nfs4j always receives. There's an easy reproduction case with inplace sed.0000
filemode, making subsequent writes on this file failingtest.txt
test.sh
Using trace gives more information on what's hapening from the NFS client.
trace.sh
#!/bin/bash strace -f -e trace=file test.sh
It shows this line, that should it should be created with
0600
flag.In nfs4j, it seems to only occurs with nfs 4.1 mount, as it goes throw OperationOPEN.java#L136 and then get a create filemode =
0000
at OperationOPEN.java#L150.The text was updated successfully, but these errors were encountered: