Re: [RFC] union-mount stuff

From: Alexander Viro (viro@math.psu.edu)
Date: Wed Jun 07 2000 - 05:07:06 EST


On Wed, 7 Jun 2000, Werner Almesberger wrote:

> Alexander Viro wrote:
> >> # mount /dev/foo /mnt
> >> # cd /mnt
> >> # demon &
> >> # pivot_root . /old
> >
> > ??? Come again? What arguments will pivot_root(2) get?
>
> Sorry, better make this "old", not "/old".
> pivot_root(2) then gets "." (being /mnt/.) and "old" (being /mnt/old).

Umm... So you want demon running with both root and cwd at new root,
right? (At least looks like sys_pivot_root() will do that, but then I'm
half-sleeping right now). With the proposed change (and rootfs) if would
happen all by itself without the cd /mnt above. OK, I'll have to think
about the possible nasty cases. When I'll get some sleep...
                                                        Cheers,
                                                                Al

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



This archive was generated by hypermail 2b29 : Wed Jun 07 2000 - 21:00:28 EST