]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
osd: add default_device_class to metadata
authorNeha Ojha <nojha@redhat.com>
Thu, 27 Jul 2017 18:21:10 +0000 (11:21 -0700)
committerNeha Ojha <nojha@redhat.com>
Thu, 27 Jul 2017 18:21:10 +0000 (11:21 -0700)
Signed-off-by: Neha Ojha <nojha@redhat.com>
src/osd/OSD.cc

index f8227ebe0ec01e5d25ba3aa119e78a4835573029..8d5b170dd14f77949637e4f11714aaf2116f2bb4 100644 (file)
@@ -5850,6 +5850,7 @@ void OSD::_collect_metadata(map<string,string> *pm)
   // backend
   (*pm)["osd_objectstore"] = store->get_type();
   (*pm)["rotational"] = store_is_rotational ? "1" : "0";
+  (*pm)["default_device_class"] = store->get_default_device_class();
   store->collect_metadata(pm);
 
   collect_sys_info(pm, cct);