commit | 5827d2412d0774cb6294521a0ea578975fed07ce | [log] [tgz] |
---|---|---|
author | Eric Sandeen <sandeen@redhat.com> | Wed Oct 07 16:49:17 2009 -0500 |
committer | Theodore Ts'o <tytso@mit.edu> | Sun Nov 15 23:54:03 2009 -0500 |
tree | 868e5e3d9e2a462722ad589f8e39f24c40dc882e | |
parent | 5f91561ae7e08d79b6a5feca167259fd7634713f [diff] |
mke2fs support for BLKDISCARD Try calling the BLKDISCARD ioctl at mkfs time to pre-discard all blocks on an ssd, or a thinly-provisioned storage device. No real error checking; if it fails, it fails, and that's ok - it's just an optimization. Also, it cannot work in conjunction with the undo io manager, for obvious reasons. Optionally disabled with a "-K" (mnemonic: Keep) option. Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>