samba-bugs@samba.org
2007-Jul-15 02:03 UTC
DO NOT REPLY [Bug 4787] New: add support for --max-delete=N where N is less than 0
https://bugzilla.samba.org/show_bug.cgi?id=4787
Summary: add support for --max-delete=N where N is less than 0
Product: rsync
Version: 3.0.0
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P3
Component: core
AssignedTo: wayned@samba.org
ReportedBy: vapier@gentoo.org
QAContact: rsync-qa@samba.org
currently the --max-delete=N behavior is:
N > 0: delete N files
N == 0: delete no files
N < 0: delete no files
perhaps for N < 0, the behavior could be "infinite" ? or have it
precalc the
number of files to delete and delete that many files plus N (so if N is -5 and
there are 20 files to delete, rsync would actually delete (20 + N) -> 15).
--
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
samba-bugs@samba.org
2007-Jul-15 05:00 UTC
DO NOT REPLY [Bug 4787] add support for --max-delete=N where N is less than 0
https://bugzilla.samba.org/show_bug.cgi?id=4787
wayned@samba.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Comment #1 from wayned@samba.org 2007-07-15 00:00 CST -------
The behavior or N < 0 is infinite deletions when specified to 3.0.0, but
you're
better off omitting --max-delete or specifying --max-delete=2147483647 if you
don't know what version the client is. The old behavior of --max-delete=0
was
unlimited deletions when specified to older rsync versions, which is why an
rsync 3.0.0 client will terminate a transfer with an older rsync server if that
option was specified. (And the docs warn you to be sure to only specify
--max-delete=0 to a 3.0.0 client.)
--
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
samba-bugs@samba.org
2007-Jul-15 05:17 UTC
DO NOT REPLY [Bug 4787] add support for --max-delete=N where N is less than 0
https://bugzilla.samba.org/show_bug.cgi?id=4787 ------- Comment #2 from vapier@gentoo.org 2007-07-15 00:16 CST ------- that works for me, thanks -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug, or are watching the QA contact.
samba-bugs@samba.org
2007-Jul-15 05:53 UTC
DO NOT REPLY [Bug 4787] add support for --max-delete=N where N is less than 0
https://bugzilla.samba.org/show_bug.cgi?id=4787
wayned@samba.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
------- Comment #3 from wayned@samba.org 2007-07-15 00:53 CST -------
I changed my mind after noticing that older version used to treat
--max-delete=-1 as "halt all deletions". This gives us a way to
communicate
our max-delete desires to any rsync in a compatible manner. I'm changing
the
code to pass --max-delete=-1 to the server when either --max-delete=0 or a
negative value was specified to 3.0.0.
--
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
samba-bugs@samba.org
2007-Jul-15 05:59 UTC
DO NOT REPLY [Bug 4787] add support for --max-delete=N where N is less than 0
https://bugzilla.samba.org/show_bug.cgi?id=4787
wayned@samba.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |WONTFIX
------- Comment #4 from wayned@samba.org 2007-07-15 00:58 CST -------
So, the only supported way to specify "unlimited" is to omit the
option or to
specify --max-delete=2147483647.
--
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
Reasonably Related Threads
- DO NOT REPLY [Bug 5506] New: support utime differences at runtime, not configure/build time
- DO NOT REPLY [Bug 6422] New: rsync needlessly aborts when getcwd() fails
- DO NOT REPLY [Bug 5327] New: rsync hangs when using --remove-source-files with a bunch of files
- DO NOT REPLY [Bug 5170] New: Cross compilation does not work
- DO NOT REPLY [Bug 5792] New: rsync fails to log files "sent" with options: --itemize-changes -n --log-file