Fix several snapshot I/O bugs

This commit is contained in:
Vitaliy Filippov
2021-04-10 17:44:12 +03:00
parent 691f066055
commit 9038d42327
5 changed files with 30 additions and 18 deletions
+4 -2
View File
@@ -19,10 +19,12 @@ void osd_t::secondary_op_callback(osd_op_t *op)
}
if (op->req.hdr.opcode == OSD_OP_SEC_READ)
{
if (op->bs_op->retval >= 0)
op->reply.sec_rw.attr_len = entry_attr_size;
else
op->reply.sec_rw.attr_len = 0;
if (op->bs_op->retval > 0)
{
op->iov.push_back(op->buf, op->bs_op->retval);
}
}
else if (op->req.hdr.opcode == OSD_OP_SEC_LIST)
{