summaryrefslogtreecommitdiffstats
path: root/src/common/blkdev.h
diff options
context:
space:
mode:
authorSage Weil <sage@redhat.com>2019-01-03 21:30:59 +0100
committerSage Weil <sage@redhat.com>2019-01-04 20:08:03 +0100
commit8cddab4520b71c030311f33a3f1927d2a98e1c3f (patch)
treef5ab34e20245b2586a5616f16af0ac1725ffb882 /src/common/blkdev.h
parentcommon/numa: cpu_set helpers and numa helpers (diff)
downloadceph-8cddab4520b71c030311f33a3f1927d2a98e1c3f.tar.xz
ceph-8cddab4520b71c030311f33a3f1927d2a98e1c3f.zip
common/blkdev: query numa info
Signed-off-by: Sage Weil <sage@redhat.com>
Diffstat (limited to 'src/common/blkdev.h')
-rw-r--r--src/common/blkdev.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/common/blkdev.h b/src/common/blkdev.h
index 7a29a1e39cd..4df433f76af 100644
--- a/src/common/blkdev.h
+++ b/src/common/blkdev.h
@@ -15,7 +15,9 @@ enum blkdev_prop_t {
BLKDEV_PROP_ROTATIONAL,
BLKDEV_PROP_SERIAL,
BLKDEV_PROP_VENDOR,
- BLKDEV_PROP_NUMPROPS
+ BLKDEV_PROP_NUMA_NODE,
+ BLKDEV_PROP_NUMA_CPUS,
+ BLKDEV_PROP_NUMPROPS,
};
extern int get_device_by_path(const char *path, char* partition, char* device, size_t max);
@@ -54,6 +56,7 @@ public:
bool support_discard() const;
bool is_nvme() const;
bool is_rotational() const;
+ int get_numa_node(int *node) const;
int dev(char *dev, size_t max) const;
int vendor(char *vendor, size_t max) const;
int model(char *model, size_t max) const;