]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common/blkdev: Fix missing stub block_device_get_metrics() on other platforms 25790/head
authorWillem Jan Withagen <wjw@digiware.nl>
Fri, 4 Jan 2019 14:44:28 +0000 (15:44 +0100)
committerWillem Jan Withagen <wjw@digiware.nl>
Fri, 4 Jan 2019 14:46:51 +0000 (15:46 +0100)
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
src/common/blkdev.cc

index bc5be07059fc17d33628fbf5462ad51ac4c06b13..1705e3584c9add5543838057600318a123b8cf22 100644 (file)
@@ -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)
 {