]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
bhyve: Use fspacectl(2) for BOP_DELETE on regular file images
authorKa Ho Ng <khng@FreeBSD.org>
Sat, 7 Aug 2021 09:10:30 +0000 (17:10 +0800)
committerKa Ho Ng <khng@FreeBSD.org>
Sat, 7 Aug 2021 09:10:30 +0000 (17:10 +0800)
commit3676512b60d65ff68fb807ede2fa6e89af18c490
tree60f43197f4f9b52e225874d27744bda6a2294133
parentc18c74a87c15f5f8774df7e2f8fa0fe72422203d
bhyve: Use fspacectl(2) for BOP_DELETE on regular file images

bhyve can also make use of fspacectl(2) to implement BOP_DELETE with
hole-punching. Since it is not desirable to do zero-filling for large
DEALLOCATE/UNMAP range, candelete is not set if pathconf(2) indicates
that the underlying file system does not support native
VOP_DEALLOCATE(9).

Sponsored by: The FreeBSD Foundation
Reviewed by: grehan
Differential Revision: https://reviews.freebsd.org/D28880
usr.sbin/bhyve/block_if.c