Date: Fri, 06 Nov 2015 00:44:30 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 196273] truncate(1) adding posix_fallocate(2) support to /usr/bin/truncate -- diff with unit tests attached Message-ID: <bug-196273-8-35vXgZEKpn@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-196273-8@https.bugs.freebsd.org/bugzilla/> References: <bug-196273-8@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196273 Bryan Drewery <bdrewery@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bdrewery@FreeBSD.org --- Comment #1 from Bryan Drewery <bdrewery@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-196273-8-35vXgZEKpn>