Skip to contentSkip to conversation

alfred: vis: Don't fail when debugfs cannot be mounted

PATCH Applied Sven Eckelmann 2 participants 2 messages Nov 1, 2016

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 alfred: vis: Don't fail when debugfs cannot be mounted

The vis server is supposed to use netlink when available. This allows to work on systems without debugfs and under network namespaces. Thus it is now not strictly required anymore to have debugfs available.

---
 vis/vis.c | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)
vis/vis.c +1 -7
index f4d13c7..51d7f5c 100644
@@ -1120,13 +1120,7 @@ static struct globals *vis_init(int argc, char *argv[])
 
 static int vis_server(struct globals *globals)
 {
-	char *debugfs_mnt;
-
-	debugfs_mnt = debugfs_mount(NULL);
-	if (!debugfs_mnt) {
-		fprintf(stderr, "Error - can't mount or find debugfs\n");
-		return EXIT_FAILURE;
-	}
+	debugfs_mount(NULL);
 
 	globals->push = (struct alfred_push_data_v0 *) globals->buf;
 	globals->vis_data = (struct vis_v1 *) (globals->buf + sizeof(*globals->push) + sizeof(struct alfred_data));
Signature · 1 line
2.10.1
#1 lore raw
Quoted 5 lines · CET Sven Eckelmann

The vis server is supposed to use netlink when available. This allows to work on systems without debugfs and under network namespaces. Thus it is now not strictly required anymore to have debugfs available.

Applied in a580287.

Thanks,
Simon