public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* pivot_root broken in 2.6.15-rc1-mm2
@ 2005-11-23  2:07 Neil Brown
  2005-11-23  2:15 ` Al Viro
  2005-11-23 11:43 ` Rob Landley
  0 siblings, 2 replies; 12+ messages in thread
From: Neil Brown @ 2005-11-23  2:07 UTC (permalink / raw)
  To: linux-kernel; +Cc: Al Viro



Pivot_root seems to be broken in 2.6.15-rc1-mm2.

I havea initramfs filesystem, mount a ext3 filesystem (which has /mnt)
at '/root' and

  cd /root
  pivot . mnt

and it says -EINVAL.

After putting in copious tracing printk, the offending test is:

	if (user_nd.mnt->mnt_parent == user_nd.mnt)
		goto out2; /* not attached */

If I remove this, it works (or seems to).
Presumably the initial root file system is 'not attached'.  But that
shouldn't be a problem, should it?

Could this be related to the new shared mounts stuff???

NeilBrown

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2005-11-25 15:32 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-23  2:07 pivot_root broken in 2.6.15-rc1-mm2 Neil Brown
2005-11-23  2:15 ` Al Viro
2005-11-23  2:38   ` Johannes Stezenbach
2005-11-23  3:01   ` Neil Brown
2005-11-23 12:02     ` Rob Landley
2005-11-25 11:52       ` Nix
2005-11-25 13:16         ` Rob Landley
2005-11-25 15:32           ` Nix
2005-11-23 11:43 ` Rob Landley
2005-11-24  5:09   ` Neil Brown
2005-11-24  5:54     ` [PATCH] " Rob Landley
2005-11-25 11:53   ` Nix

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox