summaryrefslogtreecommitdiffstats
path: root/sys-utils/swapon-common.c
diff options
context:
space:
mode:
authorKarel Zak2012-04-18 12:22:11 +0200
committerKarel Zak2012-04-18 12:22:11 +0200
commite7b63bea045d30cd083596e20edb95af723a9063 (patch)
tree332b9796215df3feec8928b020854931cb27805b /sys-utils/swapon-common.c
parentswapoff: move code from swapon.c to swapoff.c (diff)
downloadkernel-qcow2-util-linux-e7b63bea045d30cd083596e20edb95af723a9063.tar.gz
kernel-qcow2-util-linux-e7b63bea045d30cd083596e20edb95af723a9063.tar.xz
kernel-qcow2-util-linux-e7b63bea045d30cd083596e20edb95af723a9063.zip
swapoff: use libmount to parse fstab
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/swapon-common.c')
-rw-r--r--sys-utils/swapon-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-utils/swapon-common.c b/sys-utils/swapon-common.c
index d5b7cef61..5c95ef342 100644
--- a/sys-utils/swapon-common.c
+++ b/sys-utils/swapon-common.c
@@ -53,7 +53,7 @@ int match_swap(struct libmnt_fs *fs, void *data __attribute__((unused)))
int is_active_swap(const char *filename)
{
struct libmnt_table *st = get_swaps();
- return st && mnt_table_find_srcpath(st, filename, MNT_ITER_BACKWARD);
+ return st && mnt_table_find_source(st, filename, MNT_ITER_BACKWARD);
}