assert(path);
- DBG(CACHE, mnt_debug_h(cache, "resolving path %s", path));
+ /*DBG(CACHE, mnt_debug_h(cache, "resolving path %s", path));*/
if (!path)
return NULL;
assert(token);
assert(value);
- DBG(CACHE, mnt_debug_h(cache, "resolving tag token=%s value=%s",
- token, value));
+ /*DBG(CACHE, mnt_debug_h(cache, "resolving tag token=%s value=%s",
+ token, value));*/
if (!token || !value)
return NULL;
struct list_head *p;
assert(df);
- assert(src);
list_for_each(p, &df->changes) {
struct tabdiff_entry *de;
const char *s = mnt_fs_get_source(de->new_fs);
- if (s && strcmp(s, src) == 0)
+ if (s == NULL && src == NULL)
+ return de;
+ if (s && src && strcmp(s, src) == 0)
return de;
}
}
assert(f);
assert(filename);
- DBG(TAB, mnt_debug_h(tb, "%s: start parsing", filename));
+ DBG(TAB, mnt_debug_h(tb, "%s: start parsing (%d entries)",
+ filename, mnt_table_get_nents(tb)));
/* necessary for /proc/mounts only, the /proc/self/mountinfo
* parser sets the flag properly
}
}
- DBG(TAB, mnt_debug_h(tb, "%s: stop parsing", filename));
+ DBG(TAB, mnt_debug_h(tb, "%s: stop parsing (%d entries)",
+ filename, mnt_table_get_nents(tb)));
return 0;
err:
DBG(TAB, mnt_debug_h(tb, "%s: parse error (rc=%d)", filename, rc));