Page MenuHomeFreeBSD

bhyve: Use fspacectl(2) for BOP_DELETE on regular file images

Authored by khng on Feb 23 2021, 6:43 AM.
Referenced Files
F61905003: D28880.diff
Sun, May 28, 3:18 AM
Unknown Object (File)
Apr 2 2023, 6:31 PM
Unknown Object (File)
Dec 28 2022, 6:44 PM
Unknown Object (File)
Dec 24 2022, 12:43 AM
Unknown Object (File)
Dec 15 2022, 1:48 AM
Unknown Object (File)
Dec 4 2022, 5:55 PM



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

Submitted by: Ka Ho Ng <>
Sponsored by: The FreeBSD Foundation

Diff Detail

rG FreeBSD src repository
Lint Not Applicable
Tests Not Applicable

Event Timeline

khng requested review of this revision.Feb 23 2021, 6:43 AM

Bump due to updates of D28347 (fspacectl(2) added new param)

This revision is now accepted and ready to land.Aug 5 2021, 11:30 PM

Loop over to guarantee the whole region is finished.

This revision now requires review to proceed.Aug 7 2021, 8:13 AM
This revision is now accepted and ready to land.Aug 7 2021, 8:49 AM