summaryrefslogtreecommitdiffstats
path: root/shlibs/mount/src/context.c
diff options
context:
space:
mode:
authorKarel Zak2010-11-23 12:21:12 +0100
committerKarel Zak2011-01-03 12:28:46 +0100
commit21193a4890f29fb8e7b6361aa1e5288f874396b9 (patch)
treeed152b42c84a00bfb4f6d7880a02e851b5afda18 /shlibs/mount/src/context.c
parentfindmnt: fix exit code (diff)
downloadkernel-qcow2-util-linux-21193a4890f29fb8e7b6361aa1e5288f874396b9.tar.gz
kernel-qcow2-util-linux-21193a4890f29fb8e7b6361aa1e5288f874396b9.tar.xz
kernel-qcow2-util-linux-21193a4890f29fb8e7b6361aa1e5288f874396b9.zip
libmount: add new debug messages, fix umount return code
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'shlibs/mount/src/context.c')
-rw-r--r--shlibs/mount/src/context.c17
1 files changed, 13 insertions, 4 deletions
diff --git a/shlibs/mount/src/context.c b/shlibs/mount/src/context.c
index 3ab5a7378..923d71918 100644
--- a/shlibs/mount/src/context.c
+++ b/shlibs/mount/src/context.c
@@ -1079,13 +1079,22 @@ int mnt_context_update_tabs(mnt_context *cxt)
assert(cxt);
- if ((cxt->flags & MNT_FL_NOMTAB) && cxt->helper)
+ if (cxt->flags & MNT_FL_NOMTAB) {
+ DBG(CXT, mnt_debug_h(cxt, "don't update: NOMTAB flag"));
return 0;
- if (!cxt->update || !mnt_update_is_ready(cxt->update))
+ }
+ if (cxt->helper) {
+ DBG(CXT, mnt_debug_h(cxt, "don't update: external helper"));
return 0;
- if (cxt->syscall_status)
+ }
+ if (!cxt->update || !mnt_update_is_ready(cxt->update)) {
+ DBG(CXT, mnt_debug_h(cxt, "don't update: no update prepared"));
return 0;
-
+ }
+ if (cxt->syscall_status) {
+ DBG(CXT, mnt_debug_h(cxt, "don't update: syscall failed"));
+ return 0;
+ }
if (mnt_update_is_userspace_only(cxt->update))
filename = cxt->utab_path;
else {