]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] r/o bind mounts: honor mount writer counts at remount
authorDave Hansen <haveblue@us.ibm.com>
Fri, 15 Feb 2008 22:38:00 +0000 (14:38 -0800)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 19 Apr 2008 04:29:27 +0000 (00:29 -0400)
commit640579f37b7a41d6842ceaa2f3be0fdc1cf89217
tree84ba12469c4da54585e9591569e9c35fe39b635e
parentfcddfd34c3fb31b58b623f369a2de50815e0cc64
[PATCH] r/o bind mounts: honor mount writer counts at remount

Originally from: Herbert Poetzl <herbert@13thfloor.at>

This is the core of the read-only bind mount patch set.

Note that this does _not_ add a "ro" option directly to the bind mount
operation.  If you require such a mount, you must first do the bind, then
follow it up with a 'mount -o remount,ro' operation:

If you wish to have a r/o bind mount of /foo on bar:

mount --bind /foo /bar
mount -o remount,ro /bar

Acked-by: Al Viro <viro@ZenIV.linux.org.uk>
Signed-off-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Dave Hansen <haveblue@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namespace.c
include/linux/mount.h