Allow incorrectly forbidden BS_OP_LIST in readonly mode

This commit is contained in:
Vitaliy Filippov
2020-03-06 02:29:39 +03:00
parent e19d9fde5f
commit 844cacd357
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -304,7 +304,7 @@ void blockstore_impl_t::enqueue_op(blockstore_op_t *op, bool first)
op->len > block_size-op->offset ||
(op->len % disk_alignment)
)) ||
readonly && op->opcode != BS_OP_READ ||
readonly && op->opcode != BS_OP_READ && op->opcode != BS_OP_LIST ||
first && op->opcode == BS_OP_WRITE)
{
// Basic verification not passed