TRIM support
How easy/difficult would it be to add support for TRIM (discard) on a FS level?
Support for TRIM would require implementing the FITRIM ioctl on the FUSE level. But how to figure out what blocks are free or not? TRIM seems to work on the granularity of blocks, not exFAT clusters.
Possibly helpful information:
- "[PATCH] Implement FITRIM (fstrim) ioctl." (posted to ntfs-3g-devel by Richard W.M. Jones on 2014-07-07) http://ntfs-3g-devel.sf.narkive.com/CVoHuRGY/patch-implement-fitrim-fstrim-ioctl
Support for this feature could in theory make it easier to implement #45.
Looks like bmap and ioctl FUSE ops should be implemented for this. Need more research.
But how to figure out what blocks are free or not?
There's clusters bitmap that can quickly tell whether a cluster is occupied or not.
TRIM seems to work on the granularity of blocks, not exFAT clusters.
blocks <-> clusters conversion is not a problem.
If TRIM is per block, then it makes sense to TRIM also individual blocks from partially empty clusters.
Seems like this one can be closed after March 17.
Did this not make it into a release?