cxt->flags = MNT_FL_DEFAULT;
mnt_context_reset_status(cxt);
+ mnt_context_set_tabfilter(cxt, NULL, NULL);
/* restore non-resetable flags */
cxt->flags |= (fl & MNT_FL_EXTERN_FSTAB);
if (tb)
*tb = cxt->mtab;
+
+ DBG(CXT, mnt_debug_h(cxt, "mtab requested [nents=%d]",
+ mnt_table_get_nents(cxt->mtab)));
return 0;
}
cxt->table_fltrcb,
cxt->table_fltrcb_data);
+ DBG(CXT, mnt_debug_h(cxt, "tabfiler %s", fltr ? "ENABLED!" : "disabled"));
return 0;
}
assert(f);
assert(filename);
- DBG(TAB, mnt_debug_h(tb, "%s: start parsing (%d entries)",
- filename, mnt_table_get_nents(tb)));
+ DBG(TAB, mnt_debug_h(tb, "%s: start parsing [entries=%d, filter=%s]",
+ filename, mnt_table_get_nents(tb),
+ tb->fltrcb ? "yes" : "not"));
/* necessary for /proc/mounts only, the /proc/self/mountinfo
* parser sets the flag properly