]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: send smart asok result to stdout, not stderr 31412/head
authorSage Weil <sage@redhat.com>
Tue, 5 Nov 2019 13:31:52 +0000 (07:31 -0600)
committerSage Weil <sage@redhat.com>
Tue, 5 Nov 2019 13:34:07 +0000 (07:34 -0600)
Uncross the streams!

Reported-by: Patrick Seidensal <pseidensal@suse.com>
Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/OSD.cc

index bba59d7073b25756b133e237246fcfeaeda75542..6b592ff85bfa314d216a16fe762fd976c52bb00e 100644 (file)
@@ -2643,7 +2643,9 @@ will start to track new ops received afterwards.";
   } else if (prefix == "smart") {
     string devid;
     cmd_getval(cct, cmdmap, "devid", devid);
-    probe_smart(devid, ss);
+    ostringstream out;
+    probe_smart(devid, out);
+    outbl.append(out.str());
   } else if (prefix == "list_devices") {
     set<string> devnames;
     store->get_devices(&devnames);