summaryrefslogtreecommitdiffstats
path: root/libmount/src/context_umount.c
diff options
context:
space:
mode:
authorKarel Zak2016-02-01 11:01:44 +0100
committerKarel Zak2016-02-01 11:01:44 +0100
commit314c3358d53b99338d32f30dde720bf173e61c1b (patch)
tree3d8e3f32075e960ae1cb5d83218072640c6569bf /libmount/src/context_umount.c
parentMerge branch 'fix_pylibmount_install' of https://github.com/filbranden/util-l... (diff)
downloadkernel-qcow2-util-linux-314c3358d53b99338d32f30dde720bf173e61c1b.tar.gz
kernel-qcow2-util-linux-314c3358d53b99338d32f30dde720bf173e61c1b.tar.xz
kernel-qcow2-util-linux-314c3358d53b99338d32f30dde720bf173e61c1b.zip
libmount: add 'force-mountinfo' to features list, improve debug
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src/context_umount.c')
-rw-r--r--libmount/src/context_umount.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/libmount/src/context_umount.c b/libmount/src/context_umount.c
index 873dd06bf..f3d473f5e 100644
--- a/libmount/src/context_umount.c
+++ b/libmount/src/context_umount.c
@@ -992,7 +992,8 @@ int mnt_context_next_umount(struct libmnt_context *cxt,
tgt = mnt_fs_get_target(*fs);
} while (!tgt);
- DBG(CXT, ul_debugobj(cxt, "next-umount: trying %s", tgt));
+ DBG(CXT, ul_debugobj(cxt, "next-umount: trying %s [fstype: %s, t-pattern: %s, options: %s, O-pattern: %s]", tgt,
+ mnt_fs_get_fstype(*fs), cxt->fstype_pattern, mnt_fs_get_options(*fs), cxt->optstr_pattern));
/* ignore filesystems which don't match options patterns */
if ((cxt->fstype_pattern && !mnt_fs_match_fstype(*fs,
@@ -1003,12 +1004,8 @@ int mnt_context_next_umount(struct libmnt_context *cxt,
cxt->optstr_pattern))) {
if (ignored)
*ignored = 1;
- DBG(CXT, ul_debugobj(cxt, "next-umount: not-match "
- "[fstype: %s, t-pattern: %s, options: %s, O-pattern: %s]",
- mnt_fs_get_fstype(*fs),
- cxt->fstype_pattern,
- mnt_fs_get_options(*fs),
- cxt->optstr_pattern));
+
+ DBG(CXT, ul_debugobj(cxt, "next-umount: not-match"));
return 0;
}