[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <15868.1494323804@warthog.procyon.org.uk>
Date: Tue, 09 May 2017 10:56:44 +0100
From: David Howells <dhowells@...hat.com>
To: Miklos Szeredi <mszeredi@...hat.com>
Cc: dhowells@...hat.com, viro <viro@...iv.linux.org.uk>,
linux-fsdevel <linux-fsdevel@...r.kernel.org>,
linux-nfs@...r.kernel.org, lkml <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 3/9] VFS: Introduce a mount context
Miklos Szeredi <mszeredi@...hat.com> wrote:
> So say we have commands like
>
> "o+ foo"
> "o- bar"
The convention seems to be to prepend "no" to things you want to disable, so
let's stick with that, e.g.:
"o foo"
"o nobar"
otherwise we will have to have separate parsers for old mount() and the new sb
config code - and not just for NFS, but at least for ext2/3/4 also.
Further, we can only publish one format in /proc/mounts - and we cannot change
that from the foo/nofoo standard we already use as it's part of the UAPI.
> The generic option parser would just add or remove the option in the
> current set of options,
It sounds like you want to build up a string of "opt1,opt2,opt3" then have the
VFS add and remove things from it and then parse it into the filesystem's
internal structures on "commit".
> and commit would just call ->remount_fs() with the new set of options.
You're defining "commit" to do different things depending on the situation.
You need a separation between "commit create" and "commit update".
> It would probably not work for the NFS case, but that's okay, NFS can
> implement its own option parsing.
If NFS has to implement its own option parsing, we've done it wrong.
David
Powered by blists - more mailing lists