[PATCH] libnuma: numa_node_to_cpus() warning

Cliff Wickman <[email protected]>
Newsgroups org.kernel.vger.linux-numa
Message-ID <[email protected]>
From: Cliff Wickman <[email protected]>

We have occasionally seen the "/sys not mounted or invalid. Assuming one node:"
warning from numa_node_to_cpus_v2(). But we have no clue why.
This patch adds a bit more verbosity to the warning message.

Signed-off-by: Cliff Wickman <[email protected]>
---
 libnuma.c |    2 ++
 1 file changed, 2 insertions(+)

Index: numactl-dev/libnuma.c
===================================================================
--- numactl-dev.orig/libnuma.c
+++ numactl-dev/libnuma.c
@@ -1342,6 +1342,8 @@ numa_node_to_cpus_v2(int node, struct bi
 		numa_warn(W_nosysfs2,
 		   "/sys not mounted or invalid. Assuming one node: %s",
 			  strerror(errno)); 
+		numa_warn(W_nosysfs2,
+		   "(cannot open or correctly parse %s)", fn);
 		numa_bitmask_setall(mask);
 		err = -1;
 	}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.