lkml.org 
[lkml]   [2000]   [Jan]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] root-hopping for pre-2.3.41-3
    Horst von Brand wrote:
    >
    > "H. Peter Anvin" <hpa@transmeta.com> said:
    > > almesber@lrc.di.epfl.ch wrote:
    > > > H. Peter Anvin wrote:
    > > > > I would like to suggest an alternate system call with, perhaps, more
    > > > > useful semantics:
    > > > >
    > > > > pivot_root("new_root", "old_root");
    > > >
    > > > ... with an implicit "chroot everybody on / to /new_root". That would
    > > > solve a few problems, yes. I'll give it a try.
    >
    > > Right... everyone on the old / move to the new /, although I guess
    > > that's technically not 100% necessary.
    >
    > What about mounts under the (now old) root? What if /new_root/usr doesn't
    > exist, is not a directory, has something else mounted? What happens with
    > open /dev/whatever?
    >

    1. They stay, now as mounts under /new_root/old_root
    2. The system calls return an error.
    3. They stay open. It is the responsibility of user space to deal with
    this before unmounting the old root.

    -hpa

    -
    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/

    \
     
     \ /
      Last update: 2005-03-22 13:56    [W:0.021 / U:61.756 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site