From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: linux-fsdevel-owner@vger.kernel.org Date: Fri, 13 Dec 2013 09:18:48 +0100 From: Karel Zak To: Miklos Szeredi Cc: Phillip Susi , util-linux@vger.kernel.org, Linux-Fsdevel Subject: Re: read only bind mount ignores ready only Message-ID: <20131213081848.GM16572@x2.net.home> References: <52A878C5.6050505@ubuntu.com> <20131212120544.GJ16572@x2.net.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Thu, Dec 12, 2013 at 08:42:54PM +0100, Miklos Szeredi wrote: > On Thu, Dec 12, 2013 at 1:05 PM, Karel Zak wrote: > > Miklos would be possible to fix kernel to accept MS_REC for > > MS_REMOUNT|MS_BIND|MS_RDONLY operation? Please. > > I really hate the current mount(2) API. It's a gigantic hack, and it's We all hate it, but we have to use it every day.. > nearing the end of its life anyway due to flags running out. well, the current problem with MS_REC is just one small inconsistence in the current MS_REMOUNT|MS_BIND semantic. It would be really nice to fix it now. > So instead of adding more hacks, I think it would be better to think > about adding a couple of syscalls that have clearly defined semantics. Yes, but it's (very) long term goal... Karel -- Karel Zak http://karelzak.blogspot.com