Implement "describe object(s)" operation

Required to implement fixing inconsistent objects in vitastor-cli
This commit is contained in:
Vitaliy Filippov
2023-05-20 23:19:39 +03:00
parent 6648f6bb6e
commit 0439981a66
9 changed files with 193 additions and 11 deletions
+5
View File
@@ -363,6 +363,7 @@ void osd_t::exec_op(osd_op_t *cur_op)
cur_op->req.hdr.opcode != OSD_OP_READ &&
cur_op->req.hdr.opcode != OSD_OP_SEC_READ_BMP &&
cur_op->req.hdr.opcode != OSD_OP_SCRUB &&
cur_op->req.hdr.opcode != OSD_OP_DESCRIBE &&
cur_op->req.hdr.opcode != OSD_OP_SHOW_CONFIG)
{
// Readonly mode
@@ -397,6 +398,10 @@ void osd_t::exec_op(osd_op_t *cur_op)
{
continue_primary_scrub(cur_op);
}
else if (cur_op->req.hdr.opcode == OSD_OP_DESCRIBE)
{
continue_primary_describe(cur_op);
}
else
{
exec_secondary(cur_op);