Hello,
I added some lines to dd.c in order to have some stats displayed while
copying a file.
As i have read somewhere, some people do not like such a behavior so i added
a command line option : "stat=on" in order to work.
Let me know if the diff file i send to you is ok (i'm a poor diff user)
I hope this will be soon in an official release !
see you,
Olivier Delhomme.
--
web site : http://olivier.delhomme.free.fr/
gpg public key : http://olivier.delhomme.free.fr/delhomme.gpg
146a147,149
> /* Are we displaying stats while doing the copy ?? default = off*/
> static int stat_needed = 0;
>
303a307
> stat=on display some stats while copying\n\
567a572,573
> else if (STREQ (name, "stat"))
> stat_needed = strcmp("off",val);
933a940
> char buf[2][INT_BUFSIZE_BOUND (uintmax_t)]; /* to display some stats */
1079a1087,1092
>
> if (stat_needed)
> fprintf(stderr, "\r%s+%s records in %s+%s records out (%d M)",
> umaxtostr (r_full, buf[0]), umaxtostr (r_partial, buf[1]),
> umaxtostr (w_full, buf[0]), umaxtostr (w_partial, buf[1]),
> w_full*output_blocksize/1048576);
_______________________________________________
Bug-coreutils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-coreutils