So, on Linux if you had plain encryption and then the mapped partition inside of it used TRIM, you must have added allow_discards to the mounting of the partition. That's the only way SDD would know what to discard (because it only sees the encrypted blocks).
In FreeBSD, it seems like geli has -t/-T options, but it's unclear from geli's manpage if TRIM is on by default, and it looks like geli cannot display whether TRIM is on or off, which is weird. It seems you can dump metadata with geli, but there's no clear way to check if TRIM is enabled or not via this method?
My questions are:
1) does encrypted GELI partition pass TRIM from ZFS to the hardware by default?
2) how can I check that encrypted GELI for a partition has TRIM enabled?
Assume ZFS autotrim is on or doing a manual trim.
In FreeBSD, it seems like geli has -t/-T options, but it's unclear from geli's manpage if TRIM is on by default, and it looks like geli cannot display whether TRIM is on or off, which is weird. It seems you can dump metadata with geli, but there's no clear way to check if TRIM is enabled or not via this method?
My questions are:
1) does encrypted GELI partition pass TRIM from ZFS to the hardware by default?
2) how can I check that encrypted GELI for a partition has TRIM enabled?
Assume ZFS autotrim is on or doing a manual trim.