Page MenuHomeFreeBSD

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

Authored by khng on Feb 23 2021, 6:43 AM.
Tags
None
Referenced Files
F156492205: D28880.id85985.diff
Thu, May 14, 2:10 AM
F156485244: D28880.id86186.diff
Thu, May 14, 12:34 AM
F156473175: D28880.id93366.diff
Wed, May 13, 10:15 PM
F156466277: D28880.id84515.diff
Wed, May 13, 9:12 PM
F156466243: D28880.id84515.diff
Wed, May 13, 9:12 PM
F156462221: D28880.id84733.diff
Wed, May 13, 8:31 PM
F156432248: D28880.id85985.diff
Wed, May 13, 4:29 PM
F156388414: D28880.id86011.diff
Wed, May 13, 6:29 AM

Details

Summary

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).

Submitted by: Ka Ho Ng <khng@freebsdfoundation.org>
Sponsored by: The FreeBSD Foundation

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
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