diff options
author | Karel Zak | 2015-02-16 13:38:07 +0100 |
---|---|---|
committer | Karel Zak | 2015-02-16 13:39:33 +0100 |
commit | ff5ace78d6a6f8274e12080cc282c41ad58a0c7f (patch) | |
tree | e541c848af6ddf87d5e2e1d151397861d9e14298 /libmount/src/context_mount.c | |
parent | libmount: add --enable-libmount-force-mountinfo (diff) | |
download | kernel-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.c | 1 |
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; |