samba-bugs at samba.org
2019-Apr-30 11:15 UTC
[Bug 13920] New: --max-delete and dirs being replaced by symlinks on source
https://bugzilla.samba.org/show_bug.cgi?id=13920
Bug ID: 13920
Summary: --max-delete and dirs being replaced by symlinks on
source
Product: rsync
Version: 3.1.2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5
Component: core
Assignee: wayne at opencoder.net
Reporter: ulrich.sibiller at atos.net
QA Contact: rsync-qa at samba.org
We have a rsync setup that sync a huge tree on a daily basis. We run rsync like
this:
rsync -av <src> <dest> --exclude=.. --delete-excluded --delete
--max-delete
300000
This normally works fine, but recently a user removed a directory on the src
and replaced it by a symlink. Rsync detects this, but fails to the update
because:
[...]
2019/04/30 09:06:49 [20333] cannot delete non-empty directory: affected_dir
2019/04/30 09:06:49 [20333] could not make way for new symlink: affected_dir
[...]
2019/04/30 09:14:07 [20333] Deletions stopped due to --max-delete limit (310815
skipped)
2019/04/30 09:14:07 [20333] sent 581,286,513,565 bytes received 44,091,121
bytes 31,142,989.03 bytes/sec
2019/04/30 09:14:07 [20333] total size is 212,543,263,427,406 speedup is
365.62
2019/04/30 09:14:07 [20333] rsync error: the --max-delete limit stopped
deletions (code 25) at main.c(1178) [sender=3.1.2]
I think deleting these dirs should not be counted/limited for --max-delete.
--
You are receiving this mail because:
You are the QA Contact for the bug.
samba-bugs at samba.org
2020-Apr-05 16:51 UTC
[Bug 13920] --max-delete and dirs being replaced by symlinks on source
https://bugzilla.samba.org/show_bug.cgi?id=13920
Wayne Davison <wayne at opencoder.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |WONTFIX
Status|NEW |RESOLVED
--- Comment #1 from Wayne Davison <wayne at opencoder.net> ---
That's the whole purpose of the max-deletions code is to stop deleting if a
lot
of deletions are happening.
--
You are receiving this mail because:
You are the QA Contact for the bug.
Possibly Parallel Threads
- ctdb tcp kill: remaining connections
- understanding stat cache
- ctdb tcp kill: remaining connections
- [Bug 13827] New: despite --copy-unsafe-links, rsync does not copy the referent of symlinks that point one level outside the copied tree
- ctdb tcp kill: remaining connections