Re: [dm-devel] enforce read-only state at the block layer

2023-06-06 Thread Christoph Hellwig
> Not sure of a crafty hack to workaround. Hopefully 5 year old lvm2 > remains tightly coupled to kernels of the same vintage and we get > lucky moving forward. > > So I agree with Linus, worth trying this simple change again and > seeing if there is fallout. Revert/worry about it again as needed.

Re: [dm-devel] enforce read-only state at the block layer

2023-06-06 Thread Mike Snitzer
On Thu, Jun 01 2023 at 3:28P -0400, Christoph Hellwig wrote: > Hi all, > > I've recently got a report where a file system can write to a read-only > block device, and while I've not found the root cause yet, it is very > clear that we should not prevents writes to read-only at all. > > This di

[dm-devel] enforce read-only state at the block layer

2023-06-01 Thread Christoph Hellwig
Hi all, I've recently got a report where a file system can write to a read-only block device, and while I've not found the root cause yet, it is very clear that we should not prevents writes to read-only at all. This did in fact get fixed 5 years ago, but Linus reverted it as older lvm2 tools rel