if the disk is backed by a file, then trim maps to the sparse file api, and just tells the FS to not use those blocks anymoreI doubt it would help anyway unless your backing store is a raw device that also supports trim. All TRIM does is mark blocks as unused. You'd need the mass storage gadget, the underlying filesystem, and the physical device to act upon it. And part of that would mean translating the block addresses from the USB host to the real blocks on the physical device.
if the disk is backed by a zfs zvol, it also supports trim
Fair enough. You've obviously dug deeper into it than I have.
Statistics: Posted by thagrol — Sat Aug 30, 2025 5:44 pm