summaryrefslogtreecommitdiffstats
path: root/shlibs/mount/src/tab.c
diff options
context:
space:
mode:
authorKarel Zak2010-04-08 15:01:12 +0200
committerKarel Zak2010-06-03 15:20:12 +0200
commit20aae9d352cb15b82625e88b4ad5cdea3f683f72 (patch)
treec2a018346b6c0864a965dc9bd93ed76df119a35d /shlibs/mount/src/tab.c
parentlibmount: cleanup cache flags and debug messages (diff)
downloadkernel-qcow2-util-linux-20aae9d352cb15b82625e88b4ad5cdea3f683f72.tar.gz
kernel-qcow2-util-linux-20aae9d352cb15b82625e88b4ad5cdea3f683f72.tar.xz
kernel-qcow2-util-linux-20aae9d352cb15b82625e88b4ad5cdea3f683f72.zip
libmount: add new debug messages
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'shlibs/mount/src/tab.c')
-rw-r--r--shlibs/mount/src/tab.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/shlibs/mount/src/tab.c b/shlibs/mount/src/tab.c
index 176a7d5a7..819b11d32 100644
--- a/shlibs/mount/src/tab.c
+++ b/shlibs/mount/src/tab.c
@@ -228,6 +228,9 @@ int mnt_tab_get_root_fs(mnt_tab *tb, mnt_fs **root)
if (!tb || !root)
return -1;
+ DBG(DEBUG_TAB, fprintf(stderr,
+ "libmount: %s: lookup root fs\n", tb->filename));
+
mnt_reset_iter(&itr, MNT_ITER_FORWARD);
while(mnt_tab_next_fs(tb, &itr, &fs) == 0) {
int id = mnt_fs_get_parent_id(fs);
@@ -263,6 +266,10 @@ int mnt_tab_next_child_fs(mnt_tab *tb, mnt_iter *itr,
if (!tb || !itr || !parent)
return -1;
+ DBG(DEBUG_TAB, fprintf(stderr,
+ "libmount: %s: lookup next child of %s\n",
+ tb->filename, mnt_fs_get_target(parent)));
+
parent_id = mnt_fs_get_id(parent);
if (!parent_id)
return -1;
@@ -366,6 +373,9 @@ int mnt_tab_find_next_fs(mnt_tab *tb, mnt_iter *itr,
if (!tb || !itr || !fs || !match_func)
return -1;
+ DBG(DEBUG_TAB, fprintf(stderr,
+ "libmount: %s: lookup next fs\n", tb->filename));
+
if (!itr->head)
MNT_ITER_INIT(itr, &tb->ents);