aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/mptable/ssh:/anongit@git.FreeBSD.org/src.git
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2026-01-21 23:34:27 +0000
committerKyle Evans <kevans@FreeBSD.org>2026-01-21 23:35:25 +0000
commiteacc501eff52db16b7b784c89a3a4a03c9a3ef34 (patch)
tree8c8d0194a39e6f06ac2d16851f7589b9ebb40fae /usr.sbin/mptable/ssh:/anongit@git.FreeBSD.org/src.git
parent6c61f58562b932eb46b2e05b2f5a82d34250435a (diff)
truncate: fix a minor nit + add a hole-punching testHEADmain
The struct spacectl_range we use is only really used in these three lines of code, so re-scope it down to just the dealloc branch. This is marginally easier to reason about what might be necessary to replace in porting our truncate(1) to other platforms. While we're here, add a test for the -d flag to be sure it really does punch a hole in the file. The test also tries to confirm that it does not disturb other segments of the file in the process, just to inspire some confidence that it's not corrupting the file somehow. Sponsored by: Klara, Inc. Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D51207
Diffstat (limited to 'usr.sbin/mptable/ssh:/anongit@git.FreeBSD.org/src.git')
0 files changed, 0 insertions, 0 deletions