#include "include/compat.h"
#include "CrushLocation.h"
#include "CrushWrapper.h"
+#include "common/ceph_context.h"
#include "common/config.h"
#include "include/str_list.h"
#include "common/debug.h"
+#include "common/errno.h"
#include "include/compat.h"
#include "common/SubProcess.h"
lderr(cct) << "stderr:\n";
err.hexdump(*_dout);
*_dout << dendl;
- return ret;
}
if (hook.join() != 0) {
return -EINVAL;
}
+ if (ret < 0)
+ return ret;
+
std::string out;
bl.copy(0, bl.length(), out);
out.erase(out.find_last_not_of(" \n\r\t")+1);