svn commit: r341232 - in head/usr.bin: . trim
Warner Losh
imp at bsdimp.com
Thu Nov 29 18:10:39 UTC 2018
On Thu, Nov 29, 2018 at 11:08 AM Eugene Grosbein <eugen at freebsd.org> wrote:
> 30.11.2018 0:52, Warner Losh wrote:
>
> > It could work on files within a filesystem, but not in its current
> state. ftruncate, however, is a better match there. None of the filesystems
> support the DIOCDELETE ioctl.
>
> However, both of UFS and ZFS issue BIO_DELETE while freeing their fs
> blocks, do they?
>
Yes. They do. You can't just open a file that's backed by ufs/zfs and issue
the DIOCGDELETE ioctl. ZFS devices, though, do honor it.
Warner
More information about the svn-src-all
mailing list