diff options
author | Karel Zak | 2014-09-22 13:16:25 +0200 |
---|---|---|
committer | Karel Zak | 2014-09-22 13:16:25 +0200 |
commit | 18b3e5495b2bd1d89286f452d1d2952e065dfecd (patch) | |
tree | 008f4099b0814ad1e7408b7de6572fcc804031f8 /include/swapprober.h | |
parent | logger: gettimeofday needs <sys/time.h> (diff) | |
download | kernel-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 'include/swapprober.h')
-rw-r--r-- | include/swapprober.h | 9 |
1 files changed, 9 insertions, 0 deletions
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.h> + +blkid_probe get_swap_prober(const char *devname); + +#endif /* UTIL_LINUX_SWAP_PROBER_H */ + |