fstrim

Discard parts or the whole filesystem with ata trim
  http://fstrim.sourceforge.net/
  0
  no reviews



This program uses fitrim (merged in linux-2.6.36) ioctl to discard parts or the whole filesystem online (mounted). you can specify range (start and length) to be discarded, or simply discard while filesystem.