On Sat, Jun 21, 2014 at 10:27 AM, Peter Humphrey <pe...@prh.myzen.co.uk> wrote: > > I found that fstrim can't work on f2fs file systems. I don't know whether > discard works yet.
Fstrim is to be preferred over discard in general. However, I suspect neither is needed for something like f2fs. Being log-based it doesn't really overwrite data in place. I suspect that it waits until an entire region of the disk is unused and then it TRIMs the whole region. However, I haven't actually used it and only know the little I've read about it. That is the principle of a log-based filesystem. I'm running btrfs on my SSD root, which is supposed to be decent for flash, but the SMART attributes of my drive aren't well-documented so I couldn't tell you what the erase count is up to. Rich