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>
9 lines
177 B
C
9 lines
177 B
C
#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 */
|
|
|