summaryrefslogtreecommitdiffstats
path: root/libmount/src/context_mount.c
diff options
context:
space:
mode:
authorKarel Zak2015-02-16 13:38:07 +0100
committerKarel Zak2015-02-16 13:39:33 +0100
commitff5ace78d6a6f8274e12080cc282c41ad58a0c7f (patch)
treee541c848af6ddf87d5e2e1d151397861d9e14298 /libmount/src/context_mount.c
parentlibmount: add --enable-libmount-force-mountinfo (diff)
downloadkernel-qcow2-util-linux-ff5ace78d6a6f8274e12080cc282c41ad58a0c7f.tar.gz
kernel-qcow2-util-linux-ff5ace78d6a6f8274e12080cc282c41ad58a0c7f.tar.xz
kernel-qcow2-util-linux-ff5ace78d6a6f8274e12080cc282c41ad58a0c7f.zip
libmount: improve remount logic
* fix fs type detection for remount * parse mtab only for remount and umount Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src/context_mount.c')
-rw-r--r--libmount/src/context_mount.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libmount/src/context_mount.c b/libmount/src/context_mount.c
index 455ef2ef0..210f0f169 100644
--- a/libmount/src/context_mount.c
+++ b/libmount/src/context_mount.c
@@ -830,7 +830,6 @@ static int do_mount_by_pattern(struct libmnt_context *cxt, const char *pattern)
/*
* Apply pattern to /etc/filesystems and /proc/filesystems
*/
-
rc = mnt_get_filesystems(&filesystems, neg ? pattern : NULL);
if (rc)
return rc;