Signed-off-by: Sage Weil <sage@redhat.com>
#endif
#include "common/debug.h"
#include "common/align.h"
+#include "common/numa.h"
#define dout_context cct
#define dout_subsys ceph_subsys_bdev
if (blkdev.is_nvme())
(*pm)[prefix + "type"] = "nvme";
+
+ // numa
+ int node;
+ r = blkdev.get_numa_node(&node);
+ if (r >= 0) {
+ (*pm)[prefix + "numa_node"] = stringify(node);
+ }
} else {
(*pm)[prefix + "access_mode"] = "file";
(*pm)[prefix + "path"] = path;