diff options
-rw-r--r-- | libmount/src/context.c | 5 | ||||
-rw-r--r-- | libmount/src/tab_parse.c | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/libmount/src/context.c b/libmount/src/context.c index 97cba72a3..fd7492d6a 100644 --- a/libmount/src/context.c +++ b/libmount/src/context.c @@ -153,6 +153,7 @@ int mnt_reset_context(struct libmnt_context *cxt) 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); @@ -938,6 +939,9 @@ int mnt_context_get_mtab(struct libmnt_context *cxt, struct libmnt_table **tb) if (tb) *tb = cxt->mtab; + + DBG(CXT, mnt_debug_h(cxt, "mtab requested [nents=%d]", + mnt_table_get_nents(cxt->mtab))); return 0; } @@ -960,6 +964,7 @@ int mnt_context_set_tabfilter(struct libmnt_context *cxt, cxt->table_fltrcb, cxt->table_fltrcb_data); + DBG(CXT, mnt_debug_h(cxt, "tabfiler %s", fltr ? "ENABLED!" : "disabled")); return 0; } diff --git a/libmount/src/tab_parse.c b/libmount/src/tab_parse.c index ad8832064..8a9d7349e 100644 --- a/libmount/src/tab_parse.c +++ b/libmount/src/tab_parse.c @@ -508,8 +508,9 @@ int mnt_table_parse_stream(struct libmnt_table *tb, FILE *f, const char *filenam 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 |