1701 ZFS to support UNMAP/TRIM for SSD
Review Request #2278 - Created Sept. 3, 2019 and submitted
Port from ZoL of TRIM support. Some notable changes from the port:
I wrote this and hooked in to new trim test setup scripts
added vdev_autotrim_bytes_done for use in test validation
added get_illumos_trim_io() to validate autotrim progress
vdev_disk_open() changed to use DKIOC_CANFREE
vdev_disk_io_start() cahnged for ZIO_TYPE_TRIM case to use DKIOCFREE
zfs-test run including new trim tests
Looks good. Just found a few comment nits.
Looks good! I can +1 this if you think we don't need to add the
-rflag to the zpool man page.
Is there a reason this needed to be moved? I don't mind the move, I'm just curious if there's a binary compat problem.
the -r flag isn't in the flag list here. Should it be? It looks like it's missing in ZoL too.
It looks like this isn't used yet. I should really make the time to revisit the ZoL stat additions.
Does a linter complain about this branch being empty on non-debug bits?
Revision 2 (+5734 -427)