Noel L Yap [[EMAIL PROTECTED]] writes:
>[EMAIL PROTECTED] on 07/10/2000 01:11:15 PM
>>> One method to create locks is to use 'mkdir' within an 'if'
>>> statement (something like):
>>
>>Definitely - especially since this method also works over NFS mounts
>>(where a mkdir operation is still atomic). Of course you also have
>>to be willing to lock an entire execution of rsync as opposed to just
>>the file it is working on at any given moment.
>
>This isn't necessarily true. If one decides to rsync one directory
>at a time and the lock exists within the directory being rsync'd,
>then several rsyncs (and other processes) can run at one time -- only
>the rsyncs within the same directory will block. (...)
Well, yeah, but that doesn't mean my statement isn't still true :-)
The directory lock approach requires that you be be willing to lock
"an entire execution of rsync". Whether or not that execution of
rsync is handling your entire directory tree or is in parallel with
others is a separate issue. I didn't mean to imply that there was no
chance of parallelizing activities, but just that if you did so,
you're granularity would still be a complete execution of rsync, and
could not go down to the file level (well, ok, I suppose in theory
a masochist might run an rsync per file :-))
-- David
/-----------------------------------------------------------------------\
\ David Bolen \ E-mail: [EMAIL PROTECTED] /
| FitLinxx, Inc. \ Phone: (203) 708-5192 |
/ 860 Canal Street, Stamford, CT 06902 \ Fax: (203) 316-5150 \
\-----------------------------------------------------------------------/