Sascha Hauer
4e3ce28973
Use a common define for RW_BUF_SIZE
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2013-04-17 13:36:31 +02:00
Sascha Hauer
74c70b3980
copy_file: limit progress bar to sensible limits
...
When copying in verbose mode from a tftp server we might
not know the size of the file being transfered. In this
case print one progress item per 16k instead of one for
each single byte.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-02-19 18:51:03 +01:00
Hubert Feurstein
7bb009c744
commands/cp: add verbose mode which displays progress bar
...
Signed-off-by: Hubert Feurstein <h.feurstein@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-11-22 21:13:05 +01:00
Sascha Hauer
583fe4fc0e
copy_file: handle write return value correctly
...
write() does not necessarily consume all input, handle this
case correctly.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-04-12 09:54:56 +02:00
Sascha Hauer
ee6b3e174d
copy_file: sparse fixes
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-21 22:21:23 +02:00
Sascha Hauer
a205b87fa2
make copy_file() globally available
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-09-25 13:33:52 +02:00