From ee6972636eec9bd9ec72f9ea16dba74474aa1a99 Mon Sep 17 00:00:00 2001 From: Willem Jan Withagen Date: Fri, 4 Jan 2019 15:44:28 +0100 Subject: [PATCH] common/blkdev: Fix missing stub block_device_get_metrics() on other platforms Signed-off-by: Willem Jan Withagen --- src/common/blkdev.cc | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/common/blkdev.cc b/src/common/blkdev.cc index bc5be07059fc..1705e3584c9a 100644 --- a/src/common/blkdev.cc +++ b/src/common/blkdev.cc @@ -1001,6 +1001,13 @@ int block_device_run_smartctl(const char *device, int timeout, return -EOPNOTSUPP; } +int block_device_get_metrics(const string& devname, int timeout, + json_spirit::mValue *result) +{ + // FIXME: implement me for freebsd + return -EOPNOTSUPP; +} + int block_device_run_nvme(const char *device, const char *vendor, int timeout, std::string *result) { @@ -1142,6 +1149,12 @@ int block_device_run_smartctl(const char *device, int timeout, return -EOPNOTSUPP; } +int block_device_get_metrics(const string& devname, int timeout, + json_spirit::mValue *result) +{ + return -EOPNOTSUPP; +} + int block_device_run_nvme(const char *device, const char *vendor, int timeout, std::string *result) { -- 2.47.3