[Bug 196273] truncate(1) adding posix_fallocate(2) support to /usr/bin/truncate -- diff with unit tests attached

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Nov 6 00:44:31 UTC 2015


Bryan Drewery <bdrewery at FreeBSD.org> changed:

           What    |Removed                     |Added
                 CC|                            |bdrewery at FreeBSD.org

--- Comment #1 from Bryan Drewery <bdrewery at FreeBSD.org> ---
Adding a new fallocate command would be fine. I would prefer this for
compatibility rather than adding the more incompatible '-a' flag.

If it makes sense, the truncate.c can be made to change behavior to
fallocate(1) when invoked through a hard link.

We do this in usr.bin/w/w.c already to change behavior for uptime(1).

You are receiving this mail because:
You are the assignee for the bug.

More information about the freebsd-bugs mailing list