From e0760210d0ff44c4ba448d2ad00d1d599fb4639d Mon Sep 17 00:00:00 2001 From: songweibin Date: Wed, 7 Mar 2018 08:25:27 +0800 Subject: [PATCH] osd: skip dumping logical devices The code meant to do so but actually it does not ... Signed-off-by: songweibin --- src/osd/OSD.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.47.3