With 3.6.0rc1 mount a cifsfs share as /mnt, then type: touch /mnt/newfile Although the file is created an error message is printed setting the file timestamps. This is caused by the extra checks added for Windows correctness in our metadata changing paths to ensure the file handle has been opened with the correct access mask to allow FILE_WRITE_ATTRIBUTES etc. The old POSIX open code maps O_RDONLY into FILE_READ, O_WRONLY into FILE_WRITE, and O_RDWR into FILE_READ|FILE_WRITE. This need to be extended to add FILE_WRITE_ATTRIBUTES, FILE_READ_ATTRIBUTES and FILE_WRITE_EA, FILE_READ_EA to allow POSIX opens to set these values. Patch to follow. Jeremy.
Created attachment 6451 [details] Patch for 3.6.0rc1 Patch I'm committing to master. Jeremy.
Comment on attachment 6451 [details] Patch for 3.6.0rc1 Once one of you guys are content, re-assign to Karolin for inclusion in 3.6.0 final.
FYI. The reason this got by testing is that we don't have a cli_posix_ntimes() call which would have exercised the time set on an open file handle. I'll look into coding this up and adding it to the smbtorture suite. Jeremy.
Karolin, please commit to v3-6-test. Thanks ! Jeremy.
Pushed to v3-6-test. Closing out bug report. Thanks!