coreos / torus

Torus Distributed Storage
https://coreos.com/blog/torus-distributed-storage-by-coreos.html
Apache License 2.0
1.78k stars 172 forks source link

Fix dump progress #306

Closed nak3 closed 8 years ago

nak3 commented 8 years ago

Fixes #305

xiang90 commented 8 years ago

why do we need to print the progress to stderr instead of stdout?

nak3 commented 8 years ago

If it outptuts the progress to the stderr, we can see the progress when we want to redirect the command result. That's the reason.

# ./bin/torusctl  -C 192.168.121.1:2379 block dump myvolume foo --progress > cli-fixed.log
myvolume [====================================                ] 761 MB / 1.07 GB
barakmich commented 8 years ago

LGTM