summaryrefslogtreecommitdiffstats
path: root/libmount/src/context_umount.c
diff options
context:
space:
mode:
authorKarel Zak2012-01-02 15:00:27 +0100
committerKarel Zak2012-01-02 15:00:27 +0100
commitc70d9d768bbe291ad29f29200340d1f4d8bbf30f (patch)
tree0878a5b06223146a9bbe6a48109cf348df75218d /libmount/src/context_umount.c
parentmount: don't canonicalize the source of a pseudofs (diff)
downloadkernel-qcow2-util-linux-c70d9d768bbe291ad29f29200340d1f4d8bbf30f.tar.gz
kernel-qcow2-util-linux-c70d9d768bbe291ad29f29200340d1f4d8bbf30f.tar.xz
kernel-qcow2-util-linux-c70d9d768bbe291ad29f29200340d1f4d8bbf30f.zip
libmount: consolidate MNT_FS_* code
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src/context_umount.c')
-rw-r--r--libmount/src/context_umount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmount/src/context_umount.c b/libmount/src/context_umount.c
index 5474da01d..568cf505b 100644
--- a/libmount/src/context_umount.c
+++ b/libmount/src/context_umount.c
@@ -557,7 +557,7 @@ int mnt_context_prepare_umount(struct libmnt_context *cxt)
assert(cxt->helper_exec_status == 1);
assert(cxt->syscall_status == 1);
- if (!cxt || !cxt->fs || (cxt->fs->flags & MNT_FS_SWAP))
+ if (!cxt || !cxt->fs || mnt_fs_is_swaparea(cxt->fs))
return -EINVAL;
if (!mnt_context_get_source(cxt) && !mnt_context_get_target(cxt))
return -EINVAL;