Thread (6 messages) 6 messages, 4 authors, 2020-11-11

Re: [PATCH V3] nvme: enable ro namespace for ZNS without append

From: Sagi Grimberg <sagi@grimberg.me>
Date: 2020-11-11 01:41:22
Also in: linux-nvme

quoted
-	if (id->nsattr & NVME_NS_ATTR_RO)
+	if (id->nsattr & NVME_NS_ATTR_RO || test_bit(NVME_NS_FORCE_RO, &ns->flags))
  		set_disk_ro(disk, true);
If the FORCE_RO flag is set, the disk is set to read-only. If that flag
is later cleared, nothing clears the disk's read-only setting.
Yea, that is true also for the non-force case, but before it broke
BLKROSET so I reverted that. We can use this FORCE_RO for BLKROSET as
well I think...
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help