devzero at web.de
2009-Aug-07 08:33 UTC
bug? rsync counts inaccesible file as being transferred
hello, with --stats, shouldn`t we differ between "number of files transferred" and "number of files failed" ? the problem is, that i have files which ALWAYS fail on transfer, and to check for "number of files failed"<=2 would be the best way for me to check if the overall transfer was ok. if i magaged to create a patch to adress this, would such patch be accepted ? regards roland rsync --stats -av * /tmp/test2 sending incremental file list rsync: send_files failed to open "/tmp/rsync-3.0.6/patches/openssl-support.diff": Permission denied (13) Number of files: 44 Number of files transferred: 1 Total file size: 590000 bytes Total transferred file size: 27793 bytes Literal data: 0 bytes Matched data: 0 bytes File list size: 1094 File list generation time: 0.001 seconds File list transfer time: 0.000 seconds Total bytes sent: 1111 Total bytes received: 31 sent 1111 bytes received 31 bytes 2284.00 bytes/sec total size is 590000 speedup is 516.64 rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1040) [sender=3.0.4] i would expect: Number of files: 44 Number of files transferred: 0 Number of files failed: 1 Total file size: 590000 bytes ... ________________________________________________________________ Neu: WEB.DE Doppel-FLAT mit Internet-Flatrate + Telefon-Flatrate f?r nur 19,99 Euro/mtl.!* http://produkte.web.de/go/02/
devzero at web.de
2009-Aug-07 08:43 UTC
bug? rsync counts inaccesible file as being transferred
it`s even worse:> Number of files: 44 > Number of files transferred: 1 > Total file size: 590000 bytes > Total transferred file size: 27793 bytesthis is wrong. that`s the size of the file which failed to transfer. so it should not be added to the total transfer file size, shouldn`t it ?> Literal data: 0 bytes > Matched data: 0 bytes > File list size: 1094 > File list generation time: 0.001 seconds > File list transfer time: 0.000 seconds > Total bytes sent: 1111 > Total bytes received: 31> hello, > > with --stats, shouldn`t we differ between "number of files transferred" and "number of files failed" ? > > the problem is, that i have files which ALWAYS fail on transfer, and to check for "number of files failed"<=2 would be the best way for me to check if the overall transfer was ok. > > if i magaged to create a patch to adress this, would such patch be accepted ? > > regards > roland > > > rsync --stats -av * /tmp/test2 > sending incremental file list > rsync: send_files failed to open "/tmp/rsync-3.0.6/patches/openssl-support.diff": Permission denied (13) > > Number of files: 44 > Number of files transferred: 1 > Total file size: 590000 bytes > Total transferred file size: 27793 bytes > Literal data: 0 bytes > Matched data: 0 bytes > File list size: 1094 > File list generation time: 0.001 seconds > File list transfer time: 0.000 seconds > Total bytes sent: 1111 > Total bytes received: 31 > > sent 1111 bytes received 31 bytes 2284.00 bytes/sec > total size is 590000 speedup is 516.64 > rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1040) [sender=3.0.4] > > i would expect: > Number of files: 44 > Number of files transferred: 0 > Number of files failed: 1 > Total file size: 590000 bytes > ... >________________________________________________________________ Neu: WEB.DE Doppel-FLAT mit Internet-Flatrate + Telefon-Flatrate f?r nur 19,99 Euro/mtl.!* http://produkte.web.de/go/02/
Wayne Davison
2009-Aug-14 14:51 UTC
bug? rsync counts inaccesible file as being transferred
On Fri, Aug 07, 2009 at 10:33:24AM +0200, devzero at web.de wrote:> with --stats, shouldn`t we differ between "number of files > transferred" and "number of files failed" ?Yes, it would be nice to fix this in the stats. Feel free to send the list a patch. ..wayne..