Commit 343d7c82 authored by Pavel Emelyanov's avatar Pavel Emelyanov

irmap: Add /lib/udev into hints, fake path and logging

Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 997c6dd4
...@@ -55,6 +55,8 @@ static struct irmap *cache[IRMAP_CACHE_SIZE]; ...@@ -55,6 +55,8 @@ static struct irmap *cache[IRMAP_CACHE_SIZE];
static struct irmap hints[] = { static struct irmap hints[] = {
{ .path = "/etc", .nr_kids = -1, }, { .path = "/etc", .nr_kids = -1, },
{ .path = "/var/spool", .nr_kids = -1, }, { .path = "/var/spool", .nr_kids = -1, },
{ .path = "/lib/udev", .nr_kids = -1, },
{ .path = "/no-such-path", .nr_kids = -1, },
{ }, { },
}; };
...@@ -296,8 +298,10 @@ int irmap_predump_run(void) ...@@ -296,8 +298,10 @@ int irmap_predump_run(void)
for (ip = predump_queue; ip; ip = ip->next) { for (ip = predump_queue; ip; ip = ip->next) {
pr_debug("\tchecking %x:%lx\n", ip->dev, ip->ino); pr_debug("\tchecking %x:%lx\n", ip->dev, ip->ino);
ret = check_open_handle(ip->dev, ip->ino, &ip->fh); ret = check_open_handle(ip->dev, ip->ino, &ip->fh);
if (ret) if (ret) {
pr_err("Failed to resolve %x:%lx\n", ip->dev, ip->ino);
break; break;
}
if (ip->fh.path) { if (ip->fh.path) {
IrmapCacheEntry ic = IRMAP_CACHE_ENTRY__INIT; IrmapCacheEntry ic = IRMAP_CACHE_ENTRY__INIT;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment