Re: [PATCH 1/3] ndctl: don't print erroneous namespace numa_nodes

2018-03-07 Thread Dan Williams
On Wed, Mar 7, 2018 at 10:02 AM, Ross Zwisler wrote: > If the kernel has CONFIG_NUMA unset namespaces in sysfs will lack a > numa_node attribute. In such cases ndctl will report a value of 0 for the > namespace numa_node in 'ndctl list'. Instead of reporting

[PATCH 1/3] ndctl: don't print erroneous namespace numa_nodes

2018-03-07 Thread Ross Zwisler
If the kernel has CONFIG_NUMA unset namespaces in sysfs will lack a numa_node attribute. In such cases ndctl will report a value of 0 for the namespace numa_node in 'ndctl list'. Instead of reporting potentially bad data just hide the numa_node field if it is unsupported. Signed-off-by: Ross