Bind Mount Extensions (RO --bind mounts)

From: Herbert Poetzl
Date: Sun Sep 28 2003 - 10:56:08 EST



Greetings!

verified that the patches apply on linux-2.6.0-test6
and work as expected ...

FYI, this patch (hopefully) allows RO --bind mounts
to 'behave' like other ro mounted filesystems, and
I hope that they will be included in the mainline
in the near future ;)

AFAIK, it handles the following cases as expected:

- open (read/write/trunc), create
- link, symlink, unlink
- mknod (reg/block/char/fifo), mkfifo
- mkdir, rmdir
- (f)chown, (f)chmod, utimes
- ioctl (gen/ext2/ext3/reiser)
- access, truncate

it doesn't handle update_atime() yet (Al Viro is still
busy ;) and it doesn't change current intermezzo code
(but this would be easy to add, because it's almost the
same as the vfs_*()s at least regarding ro --bind mounts)

you can get them at:

http://vserver.13thfloor.at/Experimental/patch-2.4.22-rc2-bme0.03.diff
http://vserver.13thfloor.at/Experimental/patch-2.4.22-rc2-bme0.03.diff.bz2
http://vserver.13thfloor.at/Experimental/patch-2.6.0-test3-bme0.03.diff
http://vserver.13thfloor.at/Experimental/patch-2.6.0-test3-bme0.03.diff.bz2

enjoy,
Herbert

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/