bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

cp: progress bar :)


From: Andrea Di Pasquale
Subject: cp: progress bar :)
Date: Sat, 22 Dec 2007 16:53:29 +0100

Mike write:
> thanks, but didnt you just post this with a different e-mail address ?
> while 
> it wont get merged, i imagine other people may find it useful.

Sorry, i have to change my email and i have to finish progress bar
patch.

> i'd point out that your usage of size_t types wont fly in a 32bit
> world and 
> LFS.  you should convert all of your internal size units to off_t's
> instead.  
> then test copying a file that is over 2 gigs in size.

Test with 2 GiB size:

address@hidden:~:$ du -h mov.tar.gz
2.6G    mov.tar.gz
 
Example 1:
 
address@hidden:~:$ ./cp -B mov.tar.gz /tmp
 [============>                                     ]  26% |      6696.00 KiB/s 
|       0.70/2.58 GiB | ETA: 00:04:55
 
Example 2:
 
address@hidden:~:$ ./cp -B mov.tar.gz /tmp
 [==================================================] 100% |     18232.00 KiB/s 
|       2.58/2.58 GiB | ETA: 00:00:00

I wait a your response

Thanks and regards
Andrea
--- Begin Message --- Subject: Re: cp: progress bar :) Date: Sat, 22 Dec 2007 02:53:55 -0500 User-agent: KMail/1.9.7
On Friday 21 December 2007, Andrea Di Pasquale wrote:
> Hi! I've patched coreutils 5.94/6.9 for add cp's progress bar.

thanks, but didnt you just post this with a different e-mail address ?  while 
it wont get merged, i imagine other people may find it useful.

i'd point out that your usage of size_t types wont fly in a 32bit world and 
LFS.  you should convert all of your internal size units to off_t's instead.  
then test copying a file that is over 2 gigs in size.
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]