Fix vitastor-nbd crash when mapping by ID instead of inode name

This commit is contained in:
Vitaliy Filippov
2025-03-08 15:52:57 +03:00
parent 819f1125ae
commit 35d4047f46
+1 -1
View File
@@ -1194,7 +1194,7 @@ protected:
}
else
{
if (cur_op->opcode == OSD_OP_WRITE && watch->cfg.readonly)
if (cur_op->opcode == OSD_OP_WRITE && !inode && watch->cfg.readonly)
{
cur_op->retval = -EROFS;
std::function<void(cluster_op_t*)>(cur_op->callback)(cur_op);