0dc332bff2
fspacectl(2) is a system call to provide space management support to userspace applications. VOP_DEALLOCATE(9) is a VOP call to perform the deallocation. vn_deallocate(9) is a public KPI for kmods' use. The purpose of proposing a new system call, a KPI and a VOP call is to allow bhyve or other hypervisor monitors to emulate the behavior of SCSI UNMAP/NVMe DEALLOCATE on a plain file. fspacectl(2) comprises of cmd and flags parameters to specify the space management operation to be performed. Currently cmd has to be SPACECTL_DEALLOC, and flags has to be 0. fo_fspacectl is added to fileops. VOP_DEALLOCATE(9) is added as a new VOP call. A trivial implementation of VOP_DEALLOCATE(9) is provided. Sponsored by: The FreeBSD Foundation Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D28347
25 lines
447 B
Makefile
25 lines
447 B
Makefile
# $FreeBSD$
|
|
|
|
TESTSDIR= ${TESTSBASE}/sys/file
|
|
|
|
BINDIR= ${TESTSDIR}
|
|
|
|
ATF_TESTS_C+= path_test
|
|
TAP_TESTS_C+= closefrom_test
|
|
TAP_TESTS_C+= dup_test
|
|
TAP_TESTS_C+= fcntlflags_test
|
|
TAP_TESTS_SH+= flock_test
|
|
PLAIN_TESTS_C+= ftruncate_test
|
|
PLAIN_TESTS_C+= newfileops_on_fork_test
|
|
ATF_TESTS_C+= fspacectl_test
|
|
|
|
PROGS+= flock_helper
|
|
|
|
LIBADD.closefrom_test= util
|
|
|
|
LIBADD.flock_helper= pthread
|
|
|
|
LIBADD.newfileops_on_fork_test= pthread
|
|
|
|
.include <bsd.test.mk>
|