Re: [PATCH v2 1/1] vfs: Respect MS_RDONLY at bind mount creation

2014-08-01 Thread Richard Yao
On 08/01/2014 03:20 PM, Mateusz Guzik wrote: > On Fri, Aug 01, 2014 at 02:12:24PM -0400, Richard Yao wrote: >> `mount -o bind,ro ...` suffers from a silent failure where the readonly >> flag is ignored. The bind mount will be created rw whenever the target >> is rw. Users typically workaround this

Re: [PATCH v2 1/1] vfs: Respect MS_RDONLY at bind mount creation

2014-08-01 Thread Mateusz Guzik
On Fri, Aug 01, 2014 at 02:12:24PM -0400, Richard Yao wrote: > `mount -o bind,ro ...` suffers from a silent failure where the readonly > flag is ignored. The bind mount will be created rw whenever the target > is rw. Users typically workaround this by remounting readonly, but that > does not work w