[Bug 9416] New: --files-from : RERR_PARTIAL vs RERR_VANISHED

samba-bugs at samba.org samba-bugs at samba.org
Wed Nov 21 03:54:38 MST 2012


https://bugzilla.samba.org/show_bug.cgi?id=9416

           Summary: --files-from : RERR_PARTIAL vs RERR_VANISHED
           Product: rsync
           Version: 3.1.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P5
         Component: core
        AssignedTo: wayned at samba.org
        ReportedBy: penning at uu.nl
         QAContact: rsync-qa at samba.org


When using "--files-from list" where the list contains the name of a file that 
doest't exist on the server, rsync exits with RERR_PARTIAL.

If the only error (on the server side) is "can't lstat file", an exit with
the more specific RERR_VANISHED would be more to the point.

Context: "instant mirroring of CPAN" ; CPAN publishes (every minute) a list
of changes (files to delete or update). I use "rsync --files-from" to fetch
the updated files. In a corner-case I need to determine if a given file
actually exists on the server (if not, discard the update).

At the moment, this is hard. But if a single-file rsync would return
RERR_VANISHED if the file doesn't exist, I could use that.

So, I suggest "rsync --files-from" exits with RERR_VANISHED if the only
error is that one or more files in the list can't be lstat'ed.

Thanks, regards -- Henk Penning

-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the rsync mailing list