Alberto Accomazzi
2004-Jan-27 21:51 UTC
"file has vanished" bug [rsync-HEAD-20040127-1010GMT]
Just ran into this bug when running the latest snapshot from CVS: when rsyncing from two source directories into a third one, rsync gets confused about which source file is from which directory, resulting in a "file vanished" error. See test script below. Also, is there any consensus on whether using multiple source modules when pulling from an rsync daemon is going to be ok? I recall some discussion on escaping spaces or quoting them in the past but I'm not sure if anything was decided. What I'm referring to is this case: rsync -av rsync://server/'module1 module2 module3' dest/ Right now the latest CVS still supports this. Thanks, -- Alberto --------------------------------- #!/bin/sh [ -d target ] && /bin/rm -rf target if [ ! -d one ] ; then mkdir one touch one/foo touch one/zoo fi if [ ! -d two ] ; then mkdir two touch two/bar fi ./rsync-2.6.1 -avv one/ two/ target/ /bin/ls -l one two target ------------------------------------ [ads@localhost ~/tmp]$ ./runtest.sh building file list ... done created directory target ./ bar file has vanished: "/home/ads/tmp/two/foo" file has vanished: "/home/ads/tmp/two/zoo" wrote 150 bytes read 80 bytes 460.00 bytes/sec total size is 0 speedup is 0.00 rsync warning: some files vanished before they could be transfered (code 24) at main.c(628) one: total 0 -rw-rw-r-- 1 ads ads 0 Jan 27 16:22 foo -rw-rw-r-- 1 ads ads 0 Jan 27 16:22 zoo target: total 0 -rw-rw-r-- 1 ads ads 0 Jan 27 16:22 bar two: total 0 -rw-rw-r-- 1 ads ads 0 Jan 27 16:22 bar
On Tue, Jan 27, 2004 at 04:41:14PM -0500, Alberto Accomazzi wrote:> Just ran into this bug when running the latest snapshot from CVS: when > rsyncing from two source directories into a third one, rsync gets > confused about which source file is from which directory, resulting in a > "file vanished" error. See test script below.Thanks for the great bug report! I've just checked in a fix into CVS.> Also, is there any consensus on whether using multiple source modules > when pulling from an rsync daemon is going to be ok? I recall some > discussion on escaping spaces or quoting them in the past but I'm not > sure if anything was decided.There won't be any change on the escaping of spaces in the source, so that should continue to work. I think we'll probably escape spaces in the destination (with a heuristic to handle the case where the user has provided their own backslashes), but only if it's as backward-compatible as we think it will be. ..wayne..
Apparently Analagous Threads
- [LLVMdev] Linking modules across contexts crashes
- [LLVMdev] Linking modules across contexts crashes
- Class inheritance or virtual resources to manage apache modules
- rsync server complaining about vanishing files while they are not.
- The rsync daemon as a gateway service?