Page MenuHomeFreeBSD

Wire up OpenZFS with VOP_DEALLOCATE(9)
AbandonedPublic

Authored by khng on Feb 21 2021, 8:38 AM.
Tags
None
Referenced Files
F156908368: D28834.id85983.diff
Sun, May 17, 6:50 AM
F156898378: D28834.id86010.diff
Sun, May 17, 4:42 AM
F156886438: D28834.id84402.diff
Sun, May 17, 2:10 AM
F156863811: D28834.id86183.diff
Sat, May 16, 11:34 PM
F156850502: D28834.id84405.diff
Sat, May 16, 9:51 PM
F156850489: D28834.id84405.diff
Sat, May 16, 9:51 PM
F156850482: D28834.id84405.diff
Sat, May 16, 9:51 PM
F156847067: D28834.id85978.diff
Sat, May 16, 9:19 PM

Details

Reviewers
markj
allanjude
Summary

Wire up OpenZFS with VOP_DEALLOCATE(9)

This will go to upstream actually. However a differential is created for
easier tools/tools/git/git-arc.sh workflow.

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

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 37396
Build 34285: arc lint + arc unit

Event Timeline

khng requested review of this revision.Feb 21 2021, 8:38 AM

Rebased on top of the newest D27194.

khng edited the summary of this revision. (Show Details)
sys/contrib/openzfs/module/os/freebsd/zfs/zfs_vnops_os.c
3830

Does this comment need updating to instead say what FreeBSD does in this case?

sys/contrib/openzfs/module/os/freebsd/zfs/zfs_vnops_os.c
3830

That seems necessary. I don't recall we have the same limitation like Solaris that VOP can only issued on opened files.

khng marked an inline comment as not done.

Removed SPACECTL_F_CANEXPAND support on SPACECTL_DEALLOC

Can't think of any use of it right now.

  • New zfs_deallocate and new DMU api instead of calling into zfs_freesp

_PC_FDEALLOC_PRESENT -> _PC_DEALLOC_PRESENT