]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] revert "vfs: propagate mnt_flags into do_loopback/vfsmount"
authorAndrew Morton <akpm@osdl.org>
Mon, 15 May 2006 16:44:30 +0000 (09:44 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 15 May 2006 18:20:57 +0000 (11:20 -0700)
commit87db83de153243a72fd4663af53f8f4905b2df80
tree1c04e7edb60a5c129c8e118decfea8b5ba5076a3
parentbef248df5a912794c36e365c3740df1f82004463
[PATCH] revert "vfs: propagate mnt_flags into do_loopback/vfsmount"

Revert commit 2c59738fd88a4bd20db5754a0667f10179f38cef, due to

Valdis.Kletnieks@vt.edu wrote:
>
> There seems to have been a bug introduced in this changeset:
>
> Am running 2.6.17-rc3-mm1.  When this changeset is applied, 'mount --bind'
> misbehaves:
>
> > # mkdir /foo
> > # mount -t tmpfs -o rw,nosuid,nodev,noexec,noatime,nodiratime none /foo
> > # mkdir /foo/bar
> > # mount --bind /foo/bar /foo
> > # tail -2 /proc/mounts
> > none /foo tmpfs rw,nosuid,nodev,noexec,noatime,nodiratime 0 0
> > none /foo tmpfs rw 0 0
>
> Reverting this changeset causes both mounts to have the same options.
>
> (Thanks to Stephen Smalley for tracking down the changeset...)
>

Cc: Herbert Poetzl <herbert@13thfloor.at>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: <Valdis.Kletnieks@vt.edu>
Cc: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/namespace.c