summaryrefslogtreecommitdiffstats
path: root/shlibs/mount/src/context_mount.c
diff options
context:
space:
mode:
authorKarel Zak2010-11-23 20:39:55 +0100
committerKarel Zak2011-01-03 12:28:46 +0100
commitb0bb8fb6f9c3d54d230b785695a5bceab7e3f320 (patch)
tree967b3095dab666a892f40271598dd359dfd5fc12 /shlibs/mount/src/context_mount.c
parenttests: improve libmount context mount and umount test (diff)
downloadkernel-qcow2-util-linux-b0bb8fb6f9c3d54d230b785695a5bceab7e3f320.tar.gz
kernel-qcow2-util-linux-b0bb8fb6f9c3d54d230b785695a5bceab7e3f320.tar.xz
kernel-qcow2-util-linux-b0bb8fb6f9c3d54d230b785695a5bceab7e3f320.zip
libmount: fix utab file and dir modes, add new debug messages
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'shlibs/mount/src/context_mount.c')
-rw-r--r--shlibs/mount/src/context_mount.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/shlibs/mount/src/context_mount.c b/shlibs/mount/src/context_mount.c
index 7b0a9c126..960126d68 100644
--- a/shlibs/mount/src/context_mount.c
+++ b/shlibs/mount/src/context_mount.c
@@ -385,6 +385,8 @@ static int do_mount_by_pattern(mnt_context *cxt, const char *pattern)
*/
char *p, *p0;
+ DBG(CXT, mnt_debug_h(cxt, "tring mount by FS pattern list"));
+
p0 = p = strdup(pattern);
if (!p)
return -ENOMEM;
@@ -405,6 +407,8 @@ static int do_mount_by_pattern(mnt_context *cxt, const char *pattern)
/*
* try /etc/filesystems and /proc/filesystems
*/
+ DBG(CXT, mnt_debug_h(cxt, "tring mount by filesystems lists"));
+
rc = mnt_get_filesystems(&filesystems, neg ? pattern : NULL);
if (rc)
return rc;