diff options
author | Stewart Smith | 2014-03-04 05:27:27 +0100 |
---|---|---|
committer | Karel Zak | 2014-03-04 11:47:23 +0100 |
commit | c0cf4ae9b05a88dfbace18dd05d23fb0b2d19dab (patch) | |
tree | c42e7c26600d067e5bca58914f67c3f9e1861b4b /sys-utils/lscpu-dmi.c | |
parent | switch_root: make dirent d_type usage more robust (diff) | |
download | kernel-qcow2-util-linux-c0cf4ae9b05a88dfbace18dd05d23fb0b2d19dab.tar.gz kernel-qcow2-util-linux-c0cf4ae9b05a88dfbace18dd05d23fb0b2d19dab.tar.xz kernel-qcow2-util-linux-c0cf4ae9b05a88dfbace18dd05d23fb0b2d19dab.zip |
lscpu: don't assume filesystem supports d_type when searching for NUMA nodes
Not all file systems support the d_type field and simply checking for
d_type == DT_DIR in is_node_dirent would cause the test suite to fail
if run on (for example) XFS.
The simple fix is to check for DT_DIR or DT_UNKNOWN in is_node_dirent.
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'sys-utils/lscpu-dmi.c')
0 files changed, 0 insertions, 0 deletions