aboutsummaryrefslogtreecommitdiff
path: root/util-linux/swaponoff.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2017-07-27 10:58:08 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2017-07-27 10:58:08 +0200
commit8cae43c5d732e86b8a668013b957fdb6363c8388 (patch)
tree7ff6fb0ddc7a31d151e65213e55be5b9a57a3664 /util-linux/swaponoff.c
parent68b653b66b0db6b1554806650fb0bebd7af9ef3b (diff)
downloadbusybox-8cae43c5d732e86b8a668013b957fdb6363c8388.tar.gz
swapon: do not use FEATURE_MOUNT_LABEL, have your own FEATURE_SWAPONOFF_LABEL
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux/swaponoff.c')
-rw-r--r--util-linux/swaponoff.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/util-linux/swaponoff.c b/util-linux/swaponoff.c
index bda0687d6..f432ce180 100644
--- a/util-linux/swaponoff.c
+++ b/util-linux/swaponoff.c
@@ -37,6 +37,15 @@
//config: bool "swapoff (4.3 kb)"
//config: default y
//config: select PLATFORM_LINUX
+//config:
+//config:config FEATURE_SWAPONOFF_LABEL
+//config: bool "Support specifying devices by label or UUID"
+//config: default y
+//config: depends on SWAPON || SWAPOFF
+//config: select VOLUMEID
+//config: help
+//config: This allows for specifying a device by label or uuid, rather than by
+//config: name. This feature utilizes the same functionality as blkid/findfs.
// APPLET_ODDNAME:name main location suid_type help
//applet:IF_SWAPON( APPLET_ODDNAME(swapon, swap_on_off, BB_DIR_SBIN, BB_SUID_DROP, swapon))
@@ -72,7 +81,7 @@
# include <sys/swap.h>
#endif
-#if ENABLE_FEATURE_MOUNT_LABEL
+#if ENABLE_FEATURE_SWAPONOFF_LABEL
# include "volume_id.h"
#else
# define resolve_mount_spec(fsname) ((void)0)