commit | c7cd908be59f48c66b4f3ac9a631ffe3dde4f1ab | [log] [tgz] |
---|---|---|
author | Eric Sandeen <sandeen@redhat.com> | Wed Oct 07 16:49:17 2009 -0500 |
committer | Theodore Ts'o <tytso@mit.edu> | Mon Nov 16 21:53:39 2009 -0500 |
tree | 1203f97ba65509ae0076d91500cb56461164c70c | |
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>