add discard option -d to swapon

Signed-off-by: Matt Whitlock <busybox@mattwhitlock.name>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Matt Whitlock
2014-03-22 19:21:01 -04:00
committed by Denys Vlasenko
parent b9bbd4ddf6
commit 0a53b203f9
2 changed files with 85 additions and 9 deletions

View File

@@ -599,6 +599,15 @@ config SWAPONOFF
space. If you are not using any swap space, you can leave this
option disabled.
config FEATURE_SWAPON_DISCARD
bool "Support discard option -d"
default y
depends on SWAPONOFF
help
Enable support for discarding swap area blocks at swapon and/or as
the kernel frees them. This option enables both the -d option on
'swapon' and the 'discard' option for swap entries in /etc/fstab.
config FEATURE_SWAPON_PRI
bool "Support priority option -p"
default y