From: songweibin Date: Wed, 7 Mar 2018 00:25:27 +0000 (+0800) Subject: osd: skip dumping logical devices X-Git-Tag: v13.0.2~53^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=e0760210d0ff44c4ba448d2ad00d1d599fb4639d;p=ceph.git osd: skip dumping logical devices The code meant to do so but actually it does not ... Signed-off-by: songweibin --- diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 505cf57d40233..b4a630dcc8980 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -2337,10 +2337,10 @@ will start to track new ops received afterwards."; store->get_devices(&devnames); f->open_object_section("list_devices"); for (auto dev : devnames) { - f->dump_string("device", "/dev/" + dev); if (dev.find("dm-") == 0) { continue; } + f->dump_string("device", "/dev/" + dev); } f->close_section(); } else {