[PATCH 2/2] nvmet: implement persistent read-only namespace feature

Christoph Hellwig hch at lst.de
Thu Apr 3 23:26:17 PDT 2025


On Thu, Apr 03, 2025 at 04:47:47PM +0200, Hannes Reinecke wrote:
> Per default we try to open the 'device_path' read-write, which might
> fail if the device is read-only. So retry with opening read-only, and
> implement a new 'persistent_ro' flag if we did so.
> And map that flag onto the 'Permanently Write Protect' setting in the
> write protection feature.

This sounds like a really horrible interface, but maybe there is logic
for it so explain why we don't require the explicit read-only attribute
to open read only.




More information about the Linux-nvme mailing list