samba-bugs at samba.org
2012-Nov-21 10:54 UTC
[Bug 9416] New: --files-from : RERR_PARTIAL vs RERR_VANISHED
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.
samba-bugs at samba.org
2013-Jun-02 23:26 UTC
[Bug 9416] --files-from : RERR_PARTIAL vs RERR_VANISHED
https://bugzilla.samba.org/show_bug.cgi?id=9416 Wayne Davison <wayned at samba.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX --- Comment #1 from Wayne Davison <wayned at samba.org> 2013-06-02 23:25:59 UTC --- In looking at this, I like the RERR_PARTIAL return better for missing args (which is what files-from files are). However, you can use one of these to get rsync to treat missing args as OK: --ignore-missing-args --delete-missing-args -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.