aboutsummaryrefslogtreecommitdiff
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
parent68b653b66b0db6b1554806650fb0bebd7af9ef3b (diff)
downloadbusybox-w32-8cae43c5d732e86b8a668013b957fdb6363c8388.tar.gz
busybox-w32-8cae43c5d732e86b8a668013b957fdb6363c8388.tar.bz2
busybox-w32-8cae43c5d732e86b8a668013b957fdb6363c8388.zip
swapon: do not use FEATURE_MOUNT_LABEL, have your own FEATURE_SWAPONOFF_LABEL
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--util-linux/mount.c1
-rw-r--r--util-linux/swaponoff.c11
-rw-r--r--util-linux/volume_id/get_devname.c1
3 files changed, 11 insertions, 2 deletions
diff --git a/util-linux/mount.c b/util-linux/mount.c
index 823b7c13b..5f030607c 100644
--- a/util-linux/mount.c
+++ b/util-linux/mount.c
@@ -64,7 +64,6 @@
64//config: help 64//config: help
65//config: This allows for specifying a device by label or uuid, rather than by 65//config: This allows for specifying a device by label or uuid, rather than by
66//config: name. This feature utilizes the same functionality as blkid/findfs. 66//config: name. This feature utilizes the same functionality as blkid/findfs.
67//config: This also enables label or uuid support for swapon.
68//config: 67//config:
69//config:config FEATURE_MOUNT_NFS 68//config:config FEATURE_MOUNT_NFS
70//config: bool "Support mounting NFS file systems on Linux < 2.6.23" 69//config: bool "Support mounting NFS file systems on Linux < 2.6.23"
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 @@
37//config: bool "swapoff (4.3 kb)" 37//config: bool "swapoff (4.3 kb)"
38//config: default y 38//config: default y
39//config: select PLATFORM_LINUX 39//config: select PLATFORM_LINUX
40//config:
41//config:config FEATURE_SWAPONOFF_LABEL
42//config: bool "Support specifying devices by label or UUID"
43//config: default y
44//config: depends on SWAPON || SWAPOFF
45//config: select VOLUMEID
46//config: help
47//config: This allows for specifying a device by label or uuid, rather than by
48//config: name. This feature utilizes the same functionality as blkid/findfs.
40 49
41// APPLET_ODDNAME:name main location suid_type help 50// APPLET_ODDNAME:name main location suid_type help
42//applet:IF_SWAPON( APPLET_ODDNAME(swapon, swap_on_off, BB_DIR_SBIN, BB_SUID_DROP, swapon)) 51//applet:IF_SWAPON( APPLET_ODDNAME(swapon, swap_on_off, BB_DIR_SBIN, BB_SUID_DROP, swapon))
@@ -72,7 +81,7 @@
72# include <sys/swap.h> 81# include <sys/swap.h>
73#endif 82#endif
74 83
75#if ENABLE_FEATURE_MOUNT_LABEL 84#if ENABLE_FEATURE_SWAPONOFF_LABEL
76# include "volume_id.h" 85# include "volume_id.h"
77#else 86#else
78# define resolve_mount_spec(fsname) ((void)0) 87# define resolve_mount_spec(fsname) ((void)0)
diff --git a/util-linux/volume_id/get_devname.c b/util-linux/volume_id/get_devname.c
index b64d28ceb..34f5d119f 100644
--- a/util-linux/volume_id/get_devname.c
+++ b/util-linux/volume_id/get_devname.c
@@ -11,6 +11,7 @@
11//kbuild:lib-$(CONFIG_BLKID) += get_devname.o 11//kbuild:lib-$(CONFIG_BLKID) += get_devname.o
12//kbuild:lib-$(CONFIG_FINDFS) += get_devname.o 12//kbuild:lib-$(CONFIG_FINDFS) += get_devname.o
13//kbuild:lib-$(CONFIG_FEATURE_MOUNT_LABEL) += get_devname.o 13//kbuild:lib-$(CONFIG_FEATURE_MOUNT_LABEL) += get_devname.o
14//kbuild:lib-$(CONFIG_FEATURE_SWAPONOFF_LABEL) += get_devname.o
14 15
15#include <sys/mount.h> /* BLKGETSIZE64 */ 16#include <sys/mount.h> /* BLKGETSIZE64 */
16#if !defined(BLKGETSIZE64) 17#if !defined(BLKGETSIZE64)