Re: BUG: Mount ignores mount options

From: Miklos Szeredi
Date: Mon Aug 13 2018 - 08:54:07 EST


On Sat, Aug 11, 2018 at 3:58 AM, Al Viro <viro@xxxxxxxxxxxxxxxxxx> wrote:

> What I'm saying is that the entire superblock-creating
> machinery - all of it - is nothing but library helpers. With the
> decision of when/how/if they are to be used being down to filesystem
> driver. Your "first mount"/"additional mount" simply do not map
> to anything universally applicable.

Why so? (Note: using the "mount" terminology here is fundamentally
broken to start with, mounts have nothing to do with this...
Filesystem instance is better word.)

You bring up NFS as an example, but creating and/or reusing an nfs
client instance connected to a certain server is certainly a clear and
well defined concept.

The question becomes: does it make sense to generalize this concept
and export it to userspace with the new API?

You know the Plan 9 fs interface much better, but to me it looks like
there's a separate namespace for filesystem instances, and the mount
command just refers to such an instance. So there's no comparing of
options or any such horror, just the need to explicitly instantiate a
new instance when necessary. Doesn't sound very difficult to
implement in the new API.

Thanks,
Miklos