From: Willem Jan Withagen Date: Fri, 4 Jan 2019 14:44:28 +0000 (+0100) Subject: common/blkdev: Fix missing stub block_device_get_metrics() on other platforms X-Git-Tag: v14.1.0~485^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F25790%2Fhead;p=ceph.git common/blkdev: Fix missing stub block_device_get_metrics() on other platforms Signed-off-by: Willem Jan Withagen --- 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) {