Put the crc in the status string and drop the header and footer. If users
want to capture it,
ceph report 2>&1 > foo.txt
Signed-off-by: Sage Weil <sage@inktank.com>
paxos->dump_info(f.get());
f->close_section();
- f->flush(ds);
+ f->flush(rdata);
- bufferlist bl;
- bl.append("-------- BEGIN REPORT --------\n");
- bl.append(ds);
ostringstream ss2;
- ss2 << "\n-------- END REPORT " << bl.crc32c(6789) << " --------\n";
- rdata.append(bl);
- rdata.append(ss2.str());
- rs = string();
+ ss2 << "report " << rdata.crc32c(6789);
+ rs = ss2.str();
r = 0;
} else if (prefix == "quorum_status") {
if (!access_r) {