]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: skip dumping logical devices 20740/head
authorsongweibin <song.weibin@zte.com.cn>
Wed, 7 Mar 2018 00:25:27 +0000 (08:25 +0800)
committersongweibin <song.weibin@zte.com.cn>
Wed, 7 Mar 2018 00:25:27 +0000 (08:25 +0800)
The code meant to do so but actually it does not ...

Signed-off-by: songweibin <song.weibin@zte.com.cn>
src/osd/OSD.cc

index 505cf57d4023328a6cfc29ec48baa57a92be7899..b4a630dcc89801c36f345343a61695aa993ffcd7 100644 (file)
@@ -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 {