Re: [PATCH] block: Add config option to not allow writing to mounted devices

Christoph Hellwig
2023-06-14T14:31:54Z

On Wed, Jun 14, 2023 at 10:18:16AM +0200, Christian Brauner wrote:
> > I'm fine with a config option enforcing write blocking for any
> > BLK_OPEN_EXCL open. Maybe the way to it is to:
> >
> > a) have an option to prevent any writes to exclusive openers, including
> > a run-time version to enable it
>
> I really would wish we don't make this runtime configurable. Build time
> and boot time yes but toggling it at runtime makes this already a lot
> less interesting.

With run time I really mean not compile time aka boot time. Sorry for
not being precise.