Whamcloud - gitweb
mke2fs support for BLKDISCARD
authorEric Sandeen <sandeen@redhat.com>
Wed, 7 Oct 2009 21:49:17 +0000 (16:49 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 17 Nov 2009 02:53:39 +0000 (21:53 -0500)
commitc7cd908be59f48c66b4f3ac9a631ffe3dde4f1ab
tree1203f97ba65509ae0076d91500cb56461164c70c
parent5f91561ae7e08d79b6a5feca167259fd7634713f
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>
misc/mke2fs.8.in
misc/mke2fs.c