LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   read/write,write/write lock with smbclient fails (https://www.linuxquestions.org/questions/linux-networking-3/read-write-write-write-lock-with-smbclient-fails-793398/)

swatidas11 03-05-2010 08:16 AM

read/write,write/write lock with smbclient fails
 
Hi,

We have smb client running on two of the linux boxes and smb server on another linux system. During a backup operation which uses smb, read of a file was allowed while write to the same file was going on.Also simultaneous writes to the same file were allowed.Following are the settings in the smb.conf file:

lock directory =/var/samba/lock
locking=yes
strict locking = no
oplocks=yes
level2 oplocks = no
kernel oplocks =yes
raw read= yes
raw write = yes

Could anyone please let me know that what can I do to disallow read while write is going on and also restrict simultaneous writes?

jailbait 03-10-2010 12:27 PM

I suggest that you try a controlled experiment with strict locking = yes and see if that works.

-----------------------
Steve Stites


All times are GMT -5. The time now is 10:10 PM.