Bug 8775 - Preallocate option doesn't work with recursive?
Summary: Preallocate option doesn't work with recursive?
Alias: None
Product: rsync
Classification: Unclassified
Component: core (show other bugs)
Version: 3.1.0
Hardware: x64 Linux
: P5 normal (vote)
Target Milestone: ---
Assignee: Wayne Davison
QA Contact: Rsync QA Contact
Depends on:
Reported: 2012-02-23 07:51 UTC by Gordon Harris
Modified: 2013-06-02 23:34 UTC (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Gordon Harris 2012-02-23 07:51:12 UTC
With rsync  version 3.1.0dev  protocol version 31.PR14, using the --preallocate and --recursive options:

It appears as though preallocation only happens with files in the first directory copied.  In subsequent directories, rsync seems to revert to stock behavior, i.e. no preallocation.

Command line used:

rsync --links --perms --times --group --owner --devices --specials --stats --progress --verbose --preallocate --recursive --include=*/ --include=* --exclude=* /mnt/media/Music/ /mnt/medianew/Music
Comment 1 Wayne Davison 2013-06-02 23:34:58 UTC
When I try a recursive command, it calls the preallocate command for all the files in the recursive transfer.