samba-bugs at samba.org
2016-Oct-07 12:20 UTC
[Bug 12367] New: temporary lines in --progress output are not cleared
https://bugzilla.samba.org/show_bug.cgi?id=12367
Bug ID: 12367
Summary: temporary lines in --progress output are not cleared
Product: rsync
Version: 3.1.2
Hardware: All
OS: All
Status: NEW
Severity: minor
Priority: P5
Component: core
Assignee: wayned at samba.org
Reporter: paul at debian.org
QA Contact: rsync-qa at samba.org
A bug report received by Debian
(https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=749165). I can verify this.
emit_filelist_progress() in flist.c needs something like a
"output_needs_newline_maybe" variable... I can't quite see how to
implement
that cleanly.
>>---
Some temporary lines output by --progress are not cleared, so that
the output looks strange. Here's a testcase.
------------------------------------------------------------
#!/bin/sh
set -e
export LC_ALL=C
t=$HOME/rsync-test
mkdir "$t"
cd "$t"
if [ ! -d a1 ]; then
mkdir a1
touch a1/foo
fi
if [ ! -d a2 ]; then
mkdir a2
for i in `seq 1 250`
do
mkdir -p a2/dir$i
for j in `seq 1 20`
do
mktemp --tmpdir=a2/dir$i > /dev/null
done
done
fi
mkdir b
for i in 1 2
do
mkdir -p c/a$i
ln -ns ../c/a$i b
done
rs()
{
rsync -KRt "$@" a2/*/* a1/foo "localhost:$t/b/"
}
rs
rs --progress
rm -r "$t"
------------------------------------------------------------
I get:
a1/00 files...
a2/
(sometimes without the "a2/" line).
If I redirect the output to some file, I can see with "less":
0 files...^M 400 files...^M 2500 files...^M 4600 files...^Ma1/
a2/
The problem is that when "a1/" is output, the previous " 4600
files..."
line was not cleared and one can still see the end of it.
<<---
I can verify this.
--
You are receiving this mail because:
You are the QA Contact for the bug.
samba-bugs at samba.org
2016-Oct-08 00:19 UTC
[Bug 12367] temporary lines in --progress output are not cleared
https://bugzilla.samba.org/show_bug.cgi?id=12367 --- Comment #1 from Andrey Gursky <andrey.gursky at e-mail.ua> --- Hi Paul, you reported something similar on the list (https://lists.samba.org/archive/rsync/2015-December/030478.html). I've instantly recalled that, because this issue also annoys me. If I redirect rsync output via pipe and tee the resulting file is polluted with percentage progress info. Regards, Andrey -- You are receiving this mail because: You are the QA Contact for the bug.
samba-bugs at samba.org
2016-Oct-29 21:39 UTC
[Bug 12367] temporary lines in --progress output are not cleared
https://bugzilla.samba.org/show_bug.cgi?id=12367
Wayne Davison <wayned at samba.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #2 from Wayne Davison <wayned at samba.org> ---
This is apparently only happening with no -r combined with --progress. In this
case there can be a series of file-count outputs (with CR) prior to the start
of the transfer, but no LF before it moves on to other output.
Git commit e02b89d0d fixes this.
--
You are receiving this mail because:
You are the QA Contact for the bug.
samba-bugs at samba.org
2016-Oct-29 22:33 UTC
[Bug 12367] temporary lines in --progress output are not cleared
https://bugzilla.samba.org/show_bug.cgi?id=12367 --- Comment #3 from Wayne Davison <wayned at samba.org> --- Actually, I diagnosed this further, and noticed that the file counts shouldn't be output at all -- the check for progress output was being fooled by a temporary setting of the xfer_dirs var when -R is used without -d or -r. I've changed the show_filelist_p function into a var that is set during the init call so that it is always evaluated the same way. This git commit also contains a fix for the newline that could get output with --quiet: ff66fd4bb -- You are receiving this mail because: You are the QA Contact for the bug.
Seemingly Similar Threads
- [Bug 11635] New: make fails for out-of-tree build
- [Bug 11588] New: missing option: preallocate for all files except for sparse
- [Bug 12305] New: --fallocate and --sparse works wrong
- [Bug 13044] New: On macOS 10.12.6 with the new Xcode 9, `make check` is full of failures
- Updated Ubuntu 10.04 will not accept Wine MSWord2000