 ZFS for FreeBSD introduced support for TRIM on September 23, 2012.The code builds a map of regions of data that were freed; on every write the code consults the map and eventually removes ranges that were freed before, but are now overwritten.There is a low-priority thread that TRIMs ranges when the time comes.