1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-18 02:19:39 +00:00
freebsd/lib/libzpool
Rob Norris f245541e24 zfs_file: implement zfs_file_deallocate for FreeBSD 14
FreeBSD 14 gained a `VOP_DEALLOCATE` VFS operation and a `fspacectl`
syscall to use it. At minimum, these zero the given region, and if the
underlying filesystem supports it, can make the region sparse. We can
use this to get TRIM-like behaviour for file vdevs.

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16496
2024-09-18 11:35:48 -07:00
..
include libzpool/abd_os: iovec-based scatter abd 2024-08-21 13:37:25 -07:00
abd_os.c Adding Direct IO Support 2024-09-14 13:47:59 -07:00
kernel.c zfs_file: implement zfs_file_deallocate for FreeBSD 14 2024-09-18 11:35:48 -07:00
Makefile.am Adding Direct IO Support 2024-09-14 13:47:59 -07:00
taskq.c libzpool: set thread names 2024-05-01 10:51:44 -07:00
util.c nvpair: Constify string functions 2023-03-14 15:25:50 -07:00