My memory from working with different systems in the past is that the default behavior for many windows SMB clients writing to a Netapp share is that open files would automatically have a read lock on them. Other programs (like one running a backup) would get an error trying to read this open file.
Now someone has a workflow relying on this behavior and it doesn't seem to be true. I can either open a word doc or dd
a file on a linux CIFS mount, and while it's open, I can read the whole thing from another CIFS client.
Assuming I haven't imagined this behavior, is there any way to recreate it? I've tried a netapp with and without SMB2 enabled and with and without oplocks enabled. I've tried filers with different versions of OnTap. I don't see any mount options on linux that would affect the behavior. None of these configurations give me a deny-read lock by default.
Goal: Allow clients to write to SMB share, but deny read access from other clients until the file is closed.