summaryrefslogtreecommitdiffstats
path: root/sys-utils/swapon.c
diff options
context:
space:
mode:
authorKarel Zak2014-09-22 13:16:25 +0200
committerKarel Zak2014-09-22 13:16:25 +0200
commit18b3e5495b2bd1d89286f452d1d2952e065dfecd (patch)
tree008f4099b0814ad1e7408b7de6572fcc804031f8 /sys-utils/swapon.c
parentlogger: gettimeofday needs <sys/time.h> (diff)
downloadkernel-qcow2-util-linux-18b3e5495b2bd1d89286f452d1d2952e065dfecd.tar.gz
kernel-qcow2-util-linux-18b3e5495b2bd1d89286f452d1d2952e065dfecd.tar.xz
kernel-qcow2-util-linux-18b3e5495b2bd1d89286f452d1d2952e065dfecd.zip
swapon: split swapon-common.c
swapon - requires libmount and libblkid swapoff - requires libmount swaplabel - requires libblkid This patch add lib/swapprober.c with blkid stuff for swap. It allows to use and link libblkid only when necessary. Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/swapon.c')
-rw-r--r--sys-utils/swapon.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys-utils/swapon.c b/sys-utils/swapon.c
index ea5fdb28a..976f87e40 100644
--- a/sys-utils/swapon.c
+++ b/sys-utils/swapon.c
@@ -12,9 +12,6 @@
#include <stdint.h>
#include <ctype.h>
-#include <blkid.h>
-
-#include <libmount.h>
#include <libsmartcols.h>
#include "c.h"
@@ -23,11 +20,12 @@
#include "blkdev.h"
#include "pathnames.h"
#include "xalloc.h"
+#include "strutils.h"
#include "closestream.h"
#include "swapheader.h"
+#include "swapprober.h"
#include "swapon-common.h"
-#include "strutils.h"
#define PATH_MKSWAP "/sbin/mkswap"