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
F150442050: D28880.id85985.diff
Wed, Apr 1, 6:09 AM
F150440497: D28880.id93365.diff
Wed, Apr 1, 5:57 AM
F150439275: D28880.id84554.diff
Wed, Apr 1, 5:45 AM
F150436910: D28880.id86011.diff
Wed, Apr 1, 5:27 AM
F150436903: D28880.id93087.diff
Wed, Apr 1, 5:27 AM
F150436484: D28880.id84733.diff
Wed, Apr 1, 5:23 AM
F150432254: D28880.id86186.diff
Wed, Apr 1, 4:53 AM
Unknown Object (File)
Mon, Mar 30, 4:59 PM

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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 37292
Build 34181: arc lint + arc unit

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