]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
mke2fs: Deprecate -K option, introduce discard/nodiscard
authorLukas Czerner <lczerner@redhat.com>
Thu, 18 Nov 2010 13:38:39 +0000 (14:38 +0100)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 22 Nov 2010 18:00:11 +0000 (13:00 -0500)
commit0bc85dfb384b470e6170268c8436fcbe58317cbe
tree2c134f6c220a03ed73cd40bf4436ad6d5f2a6233
parent2b21a0d9b6c7e0efeb553e2b0f61aba1b27f9257
mke2fs: Deprecate -K option, introduce discard/nodiscard

It would be nice to have consistent "discard" options in every system
tool (mount, fsck, mkfs) taking advantage of discards. Also "discard"
and "nodiscard" is more descriptive instead of just "-K" and can be
easily defaulted and it is something we can not do with "-K".

With this commit you need to specify extended option like this:

./mke2fs -T <fstype> -E nodiscard <device>

in order make a filesystem without discarding the device first. And

./mke2fs -T <fstype> -E discard <device>

respectively.

-K option is with this commit deprecated and should not be used anymore.

Signed-off-by: Lukas Czerner <lczerner@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
misc/mke2fs.8.in
misc/mke2fs.c