]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r302500,r319339,r319543,r319544,r319551,r321138:
authorngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 18 Jul 2017 17:36:25 +0000 (17:36 +0000)
committerngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 18 Jul 2017 17:36:25 +0000 (17:36 +0000)
commit15a79977126928ad5a761e94988014ee8f839f46
treed9a3e45b2a58c516ae65187be4f6de7ab4759893
parent7ccfbedebe46c51265219e67bd351d14cee75336
MFC r302500,r319339,r319543,r319544,r319551,r321138:

r302500 (by cem):

dd(1): Enable access to SIZE_T_MAX character devices

On machines where SIZE_T_MAX exceeds OFF_MAX (signed 64-bit), permit seeking
character devices to negative off_t values.  This enables dd(1) to interact
with kernel KVA in /dev/kmem on amd64, for example.

r319339 (by asomers):

Fix integer overflow detection in dd

dd(1) tried to detect whether the seek offset would overflow, but it failed
to account for the case where the provided argument was negative and the
file was a regular file (negative seeks are allowed for character devices).
I fixed it, and added a regression test.

CID: 1368659

r319543:

Stylistic tweaks

Move opening braces of functions from the last column to column 0.

MFC with: r319339

r319544:

Mark :seek_overflow as an expected failure

MFC with: r319339
PR: 219757

r319551 (by asomers):

Fix bin/dd/dd2_tests:seek_overflow on UFS and TMPFS

Split the postive and negative parts into separate test cases.  The positive
test case can only run on ZFS, because only ZFS supports files that large.

PR: 219757

r321138:

Remove unnecessary make logic added in r319339

This makes the change cleaner and easier to backport to ^/stable/10.

git-svn-id: svn://svn.freebsd.org/base/stable/10@321140 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
bin/dd/args.c
bin/dd/position.c
bin/dd/tests/Makefile
bin/dd/tests/dd2_test.sh [new file with mode: 0755]