Re: [PATCH] Add MS_BIND_FLAGS mount flag

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <menage@...>
Cc: <viro@...>, <akpm@...>, <linux-kernel@...>, <linux-fsdevel@...>
Date: Thursday, February 14, 2008 - 4:30 am

Please always CC linux-fsdevel on VFS patches!


This is useful, but...


This is rather strange behavior.  I think it would be much better, if
setting mount flags would work for recursive operations as well.  Also
what we really need is not resetting all the mount flags to some
predetermined values, but to be able to set or clear each flag
individually.

For example, with the per-mount-read-only thing the most useful
application would be to just set the read-only flag and leave the
others alone.

And this is where we usually conclude, that a new userspace mount API
is long overdue.  So for starters, how about a new syscall for bind
mounts:

int mount_bind(const char *src, const char *dst, unsigned flags,
		 unsigned mnt_flags);

or something?

Miklos

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Add MS_BIND_FLAGS mount flag, Paul Menage, (Wed Feb 13, 1:45 am)
Re: [PATCH] Add MS_BIND_FLAGS mount flag, Miklos Szeredi, (Thu Feb 14, 4:30 am)
Re: [PATCH] Add MS_BIND_FLAGS mount flag, Paul Menage, (Thu Feb 14, 11:19 am)
Re: [PATCH] Add MS_BIND_FLAGS mount flag, Miklos Szeredi, (Thu Feb 14, 12:03 pm)
Re: [PATCH] Add MS_BIND_FLAGS mount flag, Trond Myklebust, (Thu Feb 14, 12:26 pm)
Re: [PATCH] Add MS_BIND_FLAGS mount flag, Miklos Szeredi, (Thu Feb 14, 1:39 pm)
Re: [PATCH] Add MS_BIND_FLAGS mount flag, Trond Myklebust, (Thu Feb 14, 3:17 pm)
Re: [PATCH] Add MS_BIND_FLAGS mount flag, Miklos Szeredi, (Thu Feb 14, 6:18 pm)
Re: [PATCH] Add MS_BIND_FLAGS mount flag, Trond Myklebust, (Thu Feb 14, 7:33 pm)
Re: [PATCH] Add MS_BIND_FLAGS mount flag, Paul Menage, (Thu Feb 14, 12:13 pm)
Re: [PATCH] Add MS_BIND_FLAGS mount flag, Miklos Szeredi, (Thu Feb 14, 1:31 pm)
Re: [PATCH] Add MS_BIND_FLAGS mount flag, Paul Menage, (Thu Feb 14, 2:05 pm)
Re: [PATCH] Add MS_BIND_FLAGS mount flag, Miklos Szeredi, (Thu Feb 14, 6:30 pm)
Re: [PATCH] Add MS_BIND_FLAGS mount flag, Trond Myklebust, (Thu Feb 14, 9:06 am)
Re: [PATCH] Add MS_BIND_FLAGS mount flag, Christoph Hellwig, (Thu Feb 14, 2:02 am)
Re: [PATCH] Add MS_BIND_FLAGS mount flag, Paul Menage, (Thu Feb 14, 11:22 am)
Re: [PATCH] Add MS_BIND_FLAGS mount flag, Paul Menage, (Thu Feb 14, 11:23 am)