[Bug 229615] [patch] bin/dd: add status=progress support

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Jul 8 21:08:25 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229615

            Bug ID: 229615
           Summary: [patch] bin/dd: add status=progress support
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: bugs at FreeBSD.org
          Reporter: tom at hur.st

Created attachment 194964
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=194964&action=edit
Patch against CURRENT

This adds a simple single-line per-second progress report to dd, mirroring
similar functionality in GNU dd:

-% ./dd status=progress if=/dev/zero of=/dev/null
4506408960 bytes transferred in 6 secs (750235686 bytes/sec)
load: 0.72  cmd: dd 91308 [running] 6.90r 0.86u 5.95s 52% 1772k
10116733+0 records in
10116733+0 records out
5179767296 bytes transferred in 6.904121 secs (750242848 bytes/sec)
9006898688 bytes transferred in 12 secs (750133815 bytes/sec)^C
19004509+0 records in
19004508+0 records out
9730308096 bytes transferred in 12.972017 secs (750099839 bytes/sec)

I hit ^T at 6.9 seconds, to demonstrate it behaves well with the SIGINFO
handler.

Included are patches against 11-STABLE, and an untested patch against CURRENT
(doesn't build on my 11.1 machine due to missing capsicum header).

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list