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>
Mon, 16 Nov 2009 04:54:03 +0000 (23:54 -0500)
commit5827d2412d0774cb6294521a0ea578975fed07ce
tree868e5e3d9e2a462722ad589f8e39f24c40dc882e
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