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);
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;
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);