From b57e44748b2def170c470962a373a4c20b6e914e Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Sat, 25 Dec 2021 11:38:07 +0300 Subject: [PATCH] Send 4 byte bitmap in stub_uring_osd --- src/stub_uring_osd.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/stub_uring_osd.cpp b/src/stub_uring_osd.cpp index 84d94f22..f9a8d4b9 100644 --- a/src/stub_uring_osd.cpp +++ b/src/stub_uring_osd.cpp @@ -110,8 +110,10 @@ void stub_exec_op(osd_messenger_t *msgr, osd_op_t *op) if (op->req.hdr.opcode == OSD_OP_SEC_READ) { op->reply.hdr.retval = op->req.sec_rw.len; - op->buf = malloc(op->req.sec_rw.len); + op->buf = memalign_or_die(MEM_ALIGNMENT, op->req.sec_rw.len); op->iov.push_back(op->buf, op->req.sec_rw.len); + op->reply.sec_rw.attr_len = 4; + op->bitmap = op->buf; } else if (op->req.hdr.opcode == OSD_OP_SEC_WRITE || op->req.hdr.opcode == OSD_OP_SEC_WRITE_STABLE) {