<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test/bin/dd, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test/atom?h=main</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/'/>
<updated>2020-06-04T20:47:11Z</updated>
<entry>
<title>Add O_DIRECT flag to DD for cache bypass</title>
<updated>2020-06-04T20:47:11Z</updated>
<author>
<name>Richard Scheffenegger</name>
<email>rscheff@FreeBSD.org</email>
</author>
<published>2020-06-04T20:47:11Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=f4b4526f233c5a84388390279fc40ef8ecaa359f'/>
<id>urn:sha1:f4b4526f233c5a84388390279fc40ef8ecaa359f</id>
<content type='text'>
FreeBSD DD utility has not had support for the O_DIRECT flag, which
is useful to bypass local caching, e.g. for unconditionally issuing
NFS IO requests during testing.

Reviewed by:	rgrimes (mentor)
Approved by:	rgrimes (mentor, blanket)
MFC after:	3 weeks
Sponsored by:	NetApp, Inc.
Differential Revision:	https://reviews.freebsd.org/D25066
</content>
</entry>
<entry>
<title>Add iflag=fullblock to dd</title>
<updated>2019-09-30T22:00:48Z</updated>
<author>
<name>Matt Macy</name>
<email>mmacy@FreeBSD.org</email>
</author>
<published>2019-09-30T22:00:48Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=b52c534bffcc40e5be49f6d012c9d4005f0bbd81'/>
<id>urn:sha1:b52c534bffcc40e5be49f6d012c9d4005f0bbd81</id>
<content type='text'>
Normally, count=n means read(2) will be called n times on the input to dd. If
the read() returns short, as may happen when reading from a pipe, fewer bytes
will be copied from the input. With conv=sync the buffer is padded with zeros
to fill the rest of the block.

iflag=fullblock causes dd to continue reading until the block is full, so that
count=n means n full blocks are copied. This flag is compatible with illumos
and GNU dd and is used in the ZFS test suite.

Submitted by:	Ryan Moeller
Reviewed by:	manpages, mmacy@
MFC after:	1 week
Sponsored by:	 iXsystems, Inc.
Differential Revision:	https://reviews.freebsd.org/D21441
</content>
</entry>
<entry>
<title>Add oflag=fsync and oflag=sync capability to dd</title>
<updated>2019-09-30T21:56:42Z</updated>
<author>
<name>Matt Macy</name>
<email>mmacy@FreeBSD.org</email>
</author>
<published>2019-09-30T21:56:42Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=919156e34c859f4690eff7af344c76cfbe6e8a64'/>
<id>urn:sha1:919156e34c859f4690eff7af344c76cfbe6e8a64</id>
<content type='text'>
Sets the O_FSYNC flag on the output file. oflag=fsync and oflag=sync are
synonyms just as O_FSYNC and O_SYNC are synonyms. This functionality is
intended to improve portability of dd commands in the ZFS test suite.

Submitted by:	Ryan Moeller
Reviewed by:	manpages, mmacy@
MFC after:	1 week
Sponsored by:	 iXsytems, Inc.
Differential Revision:	https://reviews.freebsd.org/D21422
</content>
</entry>
<entry>
<title>dd: Check result of close(2) for errors</title>
<updated>2019-09-30T21:53:26Z</updated>
<author>
<name>Matt Macy</name>
<email>mmacy@FreeBSD.org</email>
</author>
<published>2019-09-30T21:53:26Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=2048fe709808fc2658de070dd3ad98659508b041'/>
<id>urn:sha1:2048fe709808fc2658de070dd3ad98659508b041</id>
<content type='text'>
close(2) can return errors from previous operations which should not be ignored.

PR: 229616
Submitted by:	Thomas Hurst
Reported by:	Thomas Hurst
Reviewed by:	mmacy@
Obtained from:	Ryan Moeller
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D21376
</content>
</entry>
<entry>
<title>Add conv=fdatasync flag to dd</title>
<updated>2019-09-30T21:48:12Z</updated>
<author>
<name>Matt Macy</name>
<email>mmacy@FreeBSD.org</email>
</author>
<published>2019-09-30T21:48:12Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=3b96efbda0395b5bacfb6930dfaf664f5c718512'/>
<id>urn:sha1:3b96efbda0395b5bacfb6930dfaf664f5c718512</id>
<content type='text'>
The fdatasync flag performs an fdatasync(2) on the output file before closing it.
This will be useful for the ZFS test suite.

Submitted by:	Ryan Moeller
Reviewed by:	manpages, mmacy@
MFC after:	1 week
Sponsored by:	iXSystems, Inc.
Differential Revision:	https://reviews.freebsd.org/D21373
</content>
</entry>
<entry>
<title>Add conv=fsync flag to dd</title>
<updated>2019-09-03T18:35:55Z</updated>
<author>
<name>Matt Macy</name>
<email>mmacy@FreeBSD.org</email>
</author>
<published>2019-09-03T18:35:55Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=ce1b19d8c8d160353397ced6a971cc5126da8867'/>
<id>urn:sha1:ce1b19d8c8d160353397ced6a971cc5126da8867</id>
<content type='text'>
The fsync flag performs an fsync(2) on the output file before closing it.
This will be useful for the ZFS test suite.

Submitted by:	ryan@ixsystems.com
Reviewed by:	jilles@, imp@
MFC after:	1 week
Sponsored by:	iXsystems, Inc.
</content>
</entry>
<entry>
<title>.Xr trim(8) from dd(1).</title>
<updated>2019-03-26T15:44:06Z</updated>
<author>
<name>Edward Tomasz Napierala</name>
<email>trasz@FreeBSD.org</email>
</author>
<published>2019-03-26T15:44:06Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=fd5795b23a9c129b053a6ca2c4801102303efb50'/>
<id>urn:sha1:fd5795b23a9c129b053a6ca2c4801102303efb50</id>
<content type='text'>
MFC after:	2 weeks
Sponsored by:	DARPA, AFRL
</content>
</entry>
<entry>
<title>Replace hand-crafted naive byte-by-byte zero block detection routine</title>
<updated>2018-11-29T19:28:01Z</updated>
<author>
<name>Maxim Sobolev</name>
<email>sobomax@FreeBSD.org</email>
</author>
<published>2018-11-29T19:28:01Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=dead7b5e47d14f6560c5be40e673664ba20c670f'/>
<id>urn:sha1:dead7b5e47d14f6560c5be40e673664ba20c670f</id>
<content type='text'>
with macro based around memcmp(). The latter is expected to be some
8 times faster on a modern 64-bit architectures.

In practice, throughput of doing conv=sparse from /dev/zero to /dev/null
went up some 5-fold here from 1.9GB/sec to 9.7GB/sec with this change
(bs=128k).

MFC after:	2 weeks
</content>
</entry>
<entry>
<title>capsicum: use a new capsicum helpers in tools</title>
<updated>2018-11-04T19:24:49Z</updated>
<author>
<name>Mariusz Zaborski</name>
<email>oshogbo@FreeBSD.org</email>
</author>
<published>2018-11-04T19:24:49Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=377421df9690cddad7f0c8cba84bd392e62a3b6c'/>
<id>urn:sha1:377421df9690cddad7f0c8cba84bd392e62a3b6c</id>
<content type='text'>
Use caph_{rights,ioctls,fcntls}_limit to simplify the code.
</content>
</entry>
<entry>
<title>dd(1): Correct padding in status=progress</title>
<updated>2018-09-13T14:54:46Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2018-09-13T14:54:46Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=ac5d5b054f0b1b92ae322a4be8122bd9edca84fa'/>
<id>urn:sha1:ac5d5b054f0b1b92ae322a4be8122bd9edca84fa</id>
<content type='text'>
Output padding is specified via outlen, which is set using the return value
of fprintf. Because it's printing that padding plus a trailing byte, it
grows by one each iteration rather than reflecting actual length.

Additionally, iec was sized improperly for scaling up similarly to si.
Fixing this revealed that the humanize_number(3) call to populate persec
was using the wrong width.

Submitted by:	Thomas Hurst &lt;tom@hur.st&gt;
Reviewed by:	imp
Approved by:	re (kib)
Differential Revision:	https://reviews.freebsd.org/D16960
</content>
</entry>
</feed>
