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-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F20740%2Fhead;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 505cf57d4023..b4a630dcc898 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 {