From 18b3e5495b2bd1d89286f452d1d2952e065dfecd Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 22 Sep 2014 13:16:25 +0200 Subject: 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 --- include/swapprober.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 include/swapprober.h (limited to 'include/swapprober.h') diff --git a/include/swapprober.h b/include/swapprober.h new file mode 100644 index 000000000..510770045 --- /dev/null +++ b/include/swapprober.h @@ -0,0 +1,9 @@ +#ifndef UTIL_LINUX_SWAP_PROBER_H +#define UTIL_LINUX_SWAP_PROBER_H + +#include + +blkid_probe get_swap_prober(const char *devname); + +#endif /* UTIL_LINUX_SWAP_PROBER_H */ + -- cgit v1.2.3-55-g7522