7651dbc3 | 29-Oct-2019 |
Aaron LI <aly@aaronly.me> |
cpdup(1): Add '-h' option and sort options in help and code
* Add the '-h' option to show the help text * Sort options in both code and help text * Remove the redundant '-p' option from the source f
cpdup(1): Add '-h' option and sort options in help and code
* Add the '-h' option to show the help text * Sort options in both code and help text * Remove the redundant '-p' option from the source file * The '-n' and '-S' options are missing from the help text, so add them.
See also: https://github.com/DragonFlyBSD/cpdup/commit/d87b2a60a95d0382135609bb17a014c8a0b61031
show more ...
|
bfb6f159 | 29-Oct-2019 |
Aaron LI <aly@aaronly.me> |
cpdup(1): Improve the help text a bit
* Better format the help text to be clearer. * The 'dest' argument is mandatory.
See also: https://github.com/DragonFlyBSD/cpdup/commit/22ef5685c8dd2ec770f7f2e
cpdup(1): Improve the help text a bit
* Better format the help text to be clearer. * The 'dest' argument is mandatory.
See also: https://github.com/DragonFlyBSD/cpdup/commit/22ef5685c8dd2ec770f7f2ee62f54b6e2b5f5f23
show more ...
|
0eeb0a9e | 14-Feb-2019 |
Aaron LI <aly@aaronly.me> |
dd(1): Sync with FreeBSD
Some highlights: * Add the "fillchar" operand. * Add the "speed" operand to limit the speed. * Support to specify the output data parity in the "conv" operand. * Add tests,
dd(1): Sync with FreeBSD
Some highlights: * Add the "fillchar" operand. * Add the "speed" operand to limit the speed. * Support to specify the output data parity in the "conv" operand. * Add tests, which can be run with "make test".
I adjusted the device names in the examples of the man page. Some minor tweaks (e.g., styles, function prototypes, comments) were also applied.
show more ...
|
739ce910 | 14-Feb-2019 |
Aaron LI <aly@aaronly.me> |
dd(1): Implement GNU's extension of "status" operand
* status=none: do not print status information * status=noxfer: do not print transfer statistics
This feature is useful because the statistic
dd(1): Implement GNU's extension of "status" operand
* status=none: do not print status information * status=noxfer: do not print transfer statistics
This feature is useful because the statistics information can sometimes be annoying, and redirecting stderr to /dev/null would also lost error messages.
Obtained from FreeBSD (revision 264059)
* status=progress: report the current status on a single line every second.
Obtained from FreeBSD (revisions 337505,337865,338646)
show more ...
|
fc98fc71 | 14-Feb-2019 |
Aaron LI <aly@aaronly.me> |
dd(1): Rework the time interval calculation
dd(1) uses gettimeofday(2) to compute the throughput statistics. However, gettimeofday returns the system clock, which may jump forward or back, especiall
dd(1): Rework the time interval calculation
dd(1) uses gettimeofday(2) to compute the throughput statistics. However, gettimeofday returns the system clock, which may jump forward or back, especially if NTP is in use. If the time jumps backwards, then dd will see negative elapsed time, round it up to 1usec, and print an absurdly fast transfer rate.
The solution is to use clock_gettime(2) with CLOCK_MONOTONIC as the clock_id. That clock advances steadily, regardless of changes to the system clock.
Don't sacrifice precision by converting the output of clock_gettime() to a double and then comparing the results. Instead, subtract the values of the two clock_gettime() calls, then convert to double.
Obtained-from: FreeBSD (revisions 265472,265698)
show more ...
|