Bug 5327 - rsync hangs when using --remove-source-files with a bunch of files
rsync hangs when using --remove-source-files with a bunch of files
Status: CLOSED FIXED
Product: rsync
Classification: Unclassified
Component: core
3.0.1
Other Linux
: P3 normal
: ---
Assigned To: Wayne Davison
Rsync QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-03-16 03:59 UTC by Mike Frysinger
Modified: 2008-07-26 10:45 UTC (History)
0 users

See Also:


Attachments
Fix a hang when using --remove-source-files and --dry-run (448 bytes, patch)
2008-03-16 09:00 UTC, Wayne Davison
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Frysinger 2008-03-16 03:59:47 UTC
as reported by David Leverton in Gentoo bug 193243:

mkdir remove-src-files-tst
cd remove-src-files-tst
mkdir src dst
for i in `seq -w 0 99`; do touch src/$i; done
rsync --recursive --remove-source-files --dry-run --verbose src/ dst/

it gets up to 49 and then hangs

tested with rsync-2.6.9 and rsync-3.0.0 with same behavior
Comment 1 Wayne Davison 2008-03-16 09:00:25 UTC
Created attachment 3175 [details]
Fix a hang when using --remove-source-files and --dry-run

This patch is for the development version, but is also relevant for 2.6.9.
Comment 2 Wayne Davison 2008-03-16 09:01:04 UTC
This is now fixed in the git repository.  Thanks for the report!