Bug 1815 - rsync locking MS windows files mounted through Samba
Summary: rsync locking MS windows files mounted through Samba
Alias: None
Product: rsync
Classification: Unclassified
Component: core (show other bugs)
Version: 2.6.2
Hardware: x86 Linux
: P3 major (vote)
Target Milestone: ---
Assignee: Wayne Davison
QA Contact: Rsync QA Contact
Depends on:
Reported: 2004-09-23 13:51 UTC by Josh Lindenmuth
Modified: 2005-03-16 16:48 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Josh Lindenmuth 2004-09-23 13:51:52 UTC
We are using rsync for remote mirroring of filesystems.  One of the servers we 
are mirroring is a Windows 2000 server mounted via Samba.  rsync appears to be 
locking the files on the windows server - whenever rsync is running on a file 
that we are also accessing, we receive sharing violations and files become 
locked until the server is rebooted.  

Please e-mail me @ jlindenmuth@paytimepayroll.com if you need more details.
Josh Lindenmuth
Comment 1 Wayne Davison 2004-09-23 14:25:35 UTC
Rsync doesn't do any file locking -- it just opens the file for reading on the
sending side.  If there are locking problems, you will have to look elsewhere to
solve them.

Also, it is much more efficient to run rsync on the system that is the actual
source of the data instead of on a system that mounts the data via a network
filesystem.  So, if possible, change the source rsync to run on the Windows 2000
server itself and it should work better.