summaryrefslogtreecommitdiffstats
path: root/libmount/src/context_loopdev.c
diff options
context:
space:
mode:
authorKarel Zak2014-06-17 15:38:14 +0200
committerKarel Zak2014-06-17 15:38:14 +0200
commit150e696dacafb2a2583e9c5dae736480b84d6673 (patch)
tree8890391f877566548b9648ca71cd8e2b4058da42 /libmount/src/context_loopdev.c
parenttests: remove test_wholedisk (diff)
downloadkernel-qcow2-util-linux-150e696dacafb2a2583e9c5dae736480b84d6673.tar.gz
kernel-qcow2-util-linux-150e696dacafb2a2583e9c5dae736480b84d6673.tar.xz
kernel-qcow2-util-linux-150e696dacafb2a2583e9c5dae736480b84d6673.zip
libmount: don't touch mtab when mount -n specified
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1109367 Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src/context_loopdev.c')
-rw-r--r--libmount/src/context_loopdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmount/src/context_loopdev.c b/libmount/src/context_loopdev.c
index e8f637b29..f4525b3ad 100644
--- a/libmount/src/context_loopdev.c
+++ b/libmount/src/context_loopdev.c
@@ -227,7 +227,7 @@ int mnt_context_setup_loopdev(struct libmnt_context *cxt)
* because kernel provides the name in /sys.
*/
if (get_linux_version() >= KERNEL_VERSION(2, 6, 37) ||
- !cxt->mtab_writable) {
+ !mnt_context_mtab_writable(cxt)) {
DBG(CXT, ul_debugobj(cxt, "enabling AUTOCLEAR flag"));
lo_flags |= LO_FLAGS_AUTOCLEAR;
}