Patch / RFC: add "flashcp" applet
Bernhard Reutner-Fischer
rep.dot.nop at gmail.com
Sat Nov 14 22:55:42 UTC 2009
On Sat, Nov 14, 2009 at 11:25:27PM +0100, Stefan Seyfried wrote:
>On Sat, 14 Nov 2009 23:03:02 +0100
>Bernhard Reutner-Fischer <rep.dot.nop at gmail.com> wrote:
>> 1.3k
>> don't get me wrong, but this applet seems to:
>> -) loop through mtd, eraseing 1k
>> -) loop through file, bb_copyfd_exact_size()
>
>but bb_copyfd_exact_size does not do progress indication. And I know
ok, so loop in steps of BUFSIZ, like
while (BUFSZ == bb_full_fd_action(srcfd, dstfd, BUFSZ) {
(opt & opt_v) && progress_update()
}
[]
>Just one note:
>
>+ filename = *argv++;
>+ devicename = *argv;
>
>I had something like that before (instead of argv[0]), but it resulted
>in significantly bigger code.
>I did not understand why, but it was definitely true.
that's odd.
More information about the busybox
mailing list