diff options
author | Steve French <[email protected]> | 2021-11-10 01:47:48 -0600 |
---|---|---|
committer | Steve French <[email protected]> | 2021-11-10 16:28:27 -0600 |
commit | 71e6864eacbef0b2645ca043cdfbac272cb6cea3 (patch) | |
tree | 9a62b86152ec698032bec5ab399a76ab323e5c2e /net/lapb/lapb_timer.c | |
parent | b6f2a0f89d7ed80382ec9cba8fc521129ae9baa1 (diff) |
smb3: do not error on fsync when readonly
Linux allows doing a flush/fsync on a file open for read-only,
but the protocol does not allow that. If the file passed in
on the flush is read-only try to find a writeable handle for
the same inode, if that is not possible skip sending the
fsync call to the server to avoid breaking the apps.
Reported-by: Julian Sikorski <[email protected]>
Tested-by: Julian Sikorski <[email protected]>
Suggested-by: Jeremy Allison <[email protected]>
Reviewed-by: Paulo Alcantara (SUSE) <[email protected]>
Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions