Re: mkfs.btrfs vs fstrim on an SD Card (not SSD)

2014-08-22 Thread Martin K. Petersen
> "Chris" == Chris Murphy writes: Chris> Since the SD Card spec references a completely different command Chris> than the ATA spec (TRIM), I don't think either one of these are Chris> TRIM, even if functionally equivalent. Instead the SD Card Chris> ERASE_* commands are probably being used,

Re: mkfs.btrfs vs fstrim on an SD Card (not SSD)

2014-08-21 Thread Chris Murphy
I may have answered my own question using strace. And for whatever reason this time fstrim worked. fstrim ioctl(3, FITRIM, 0x7fffbf6b87e0) … write(1, "/mnt/: 13.9 MiB (14598144 bytes)"…, 41/mnt/: 13.9 MiB (14598144 bytes) trimmed Clearly this is only erasing what the file system is aware of ha

mkfs.btrfs vs fstrim on an SD Card (not SSD)

2014-08-21 Thread Chris Murphy
Short version: When I mkfs.btrfs either an SD Card or an SSD, I get a response back to the effect the whole device specified is trimmed. However, when I use fstrim on an SD Card, I get an error that trim isn't supported. So I'm wondering if anyone knows the difference between how fstrim is trimm