rsync and missing files?

Martin Pool mbp at sourcefrog.net
Tue Apr 23 09:24:02 EST 2002


On 23 Apr 2002, John Madden <jmadden at ivy.tec.in.us> wrote:
> >> send_files failed to open //home/user/Maildir/new/_dwG.NeZv8.blah: No
> >> such file or directory
> >> rsync error: partial transfer (code 23) at main.c(578)
> >
> > This looks slightly problematic. While Maildir delivery guarantees that
> > files in new/ will always be complete/present, no such guarantee exists
> > for retrieval/access. There is a race between stat'ing the source files
> > and sending file data in the sender and any external process (a program
> > such as qmail-pop3d in this case) which removes the source files. One
> > way around this would be to use a lock file to coordinate access to the
> > Maildir between the backup process and the POP daemon. This isn't too
> > intrusive; while the lock is present, mail delivery can still take
> > place.
> 
> Well, since this was the only response, are we looking at the possibility of
> this being the default behavior?

I don't think it would be a good idea to have qmail-specific locking
in rsync.

> I'd be quite happy with rsync just throwing a warning and going to the next
> file, or at least there being an option to turn on such behavior.

Isn't that the current behaviour?

-- 
Martin 




More information about the rsync mailing list