Exporting NVMe-oF devices read-only enforced on export from the NVMe-oF target.

Sagi Grimberg sagi at grimberg.me
Fri Oct 9 03:57:59 EDT 2020


>> btw, I just noticed that 1293477f4f32 ("nvme: set gendisk read only
>> based on nsattr") breaks BLKROSET ioctls.
>>
>> If I now do:
>> blockdev --setro /dev/nvme0n1
>> and then I will write to it, it will override the disk ro as
>> invalidate kicks in when the write fails.
>>
>> I think we need to start by reverting this patch, and then
>> add it back in a way that doesn't break BLKROSET...
> 
> Thanks for reporting this, let me add this fix in the V3
> 
> [PATCH V2 0/4] nvmet: allow target to export readonly ns.

To be clear,

I'm talking about commit 1293477f4f32.



More information about the Linux-nvme mailing list