HomeFreeBSD

truncate(1): Add hole-punching support

Description

truncate(1): Add hole-punching support

This commit adds hole-punching support to the truncate(1) utility. If
the option -d is specified, truncate(1) performs zeroing, and if
possible hole-punching in case the operation is supported by the
underlying file system of the specified files.

Sponsored by: The FreeBSD Foundation
Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D31556

Details

Provenance
khngAuthored on Aug 19 2021, 10:30 AM
Reviewer
kib
Differential Revision
D31556: truncate(1): Add hole-punching support
Parents
rG78267c2e703c: md: Replace BIO_DELETE emulation with vn_deallocate(9)
Branches
Unknown
Tags
Unknown