KVM SCSI unmap / discard

At the moment it’s still failing, but I suppose I’m closer now.

on the OS side, I don’t see the virtio disks in camcontrol, maybe this PV driver is partial.

What I can query is this:

root@zz:~ # sysctl -a | grep _trim
kstat.zfs.misc.zio_trim.failed: 0
kstat.zfs.misc.zio_trim.unsupported: 153
kstat.zfs.misc.zio_trim.success: 0
kstat.zfs.misc.zio_trim.bytes: 0

This might be a ZFS-side thing though as there is NO way to trigger a TRIM.

"Freed blocks are not TRIMed immediately, there is a low priority thread that TRIMs ranges when the time comes."

I’m gonna give it a day or two and see if the counters do go up.
Would appreciate if you let me know if i got the config in the storage tab right.