summaryrefslogtreecommitdiffstats
path: root/bin/dd/dd.1
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2016-02-28 10:27:12 +0000
committertrasz <trasz@FreeBSD.org>2016-02-28 10:27:12 +0000
commit5050f4bc8348f5b3dce257e767153950360d4b3f (patch)
tree233da3f0cc2462266ddb07aecfa08135640ca7fa /bin/dd/dd.1
parentd887d37a7a4f3942aa978daad85a76d2f066923e (diff)
downloadFreeBSD-src-5050f4bc8348f5b3dce257e767153950360d4b3f.zip
FreeBSD-src-5050f4bc8348f5b3dce257e767153950360d4b3f.tar.gz
Add speed limit to dd(1). This is useful for testing RCTL disk io limits
(when they actually get committed, that is), and might also come in handy in other situations. Reviewed by: wblock@ (man page) MFC after: 1 month Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'bin/dd/dd.1')
-rw-r--r--bin/dd/dd.18
1 files changed, 6 insertions, 2 deletions
diff --git a/bin/dd/dd.1 b/bin/dd/dd.1
index 4047cdc..64d1acae 100644
--- a/bin/dd/dd.1
+++ b/bin/dd/dd.1
@@ -32,7 +32,7 @@
.\" @(#)dd.1 8.2 (Berkeley) 1/13/94
.\" $FreeBSD$
.\"
-.Dd February 4, 2016
+.Dd February 28, 2016
.Dt DD 1
.Os
.Sh NAME
@@ -156,6 +156,10 @@ Otherwise, input data is read and discarded.
For pipes, the correct number of bytes is read.
For all other devices, the correct number of blocks is read without
distinguishing between a partial or complete block being read.
+.It Cm speed Ns = Ns Ar n
+Limit the copying speed to
+.Ar n
+bytes per second.
.It Cm status Ns = Ns Ar value
Where
.Cm value
@@ -325,7 +329,7 @@ appended.
.El
.El
.Pp
-Where sizes are specified, a decimal, octal, or hexadecimal number of
+Where sizes or speed are specified, a decimal, octal, or hexadecimal number of
bytes is expected.
If the number ends with a
.Dq Li b ,
OpenPOWER on IntegriCloud