does rsync lock exclusively files to copy?
jw at pegasys.ws
Thu Jul 24 11:17:44 EST 2003
On Wed, Jul 23, 2003 at 09:12:21PM -0400, Haralabos Athanassiou wrote:
[reformatted because sender mailer is broken]
> I'm running rsync 2.5.6 on windows (via cygwin) and I've
> had other processes try to open the same files as rsync,
> but could not get through sometimes. Does rsync place a
> shared lock or an exclusive lock on the files it will copy
> I checked into the sources but did not find any use of
> flock() which could specify either LOCK_SH or LOCK_EX, so
> I'm not sure what the open() does when used with O_RDONLY.
That's an artifact of windows. All open operations are
exclusive. This is the bane of backups on whendoze.
J.W. Schultz Pegasystems Technologies
email address: jw at pegasys.ws
Remember Cernan and Schmitt
More information about the rsync