RFC & PATCH: initrd's change_root exorcised

From: almesber@lrc.di.epfl.ch
Date: Sat Jan 15 2000 - 21:24:25 EST


While thinking about ways to generalize change_root, it finally occurred to
me that all of the "magic" is already in chroot(). The only difficulty then
is to get rid of the old, unused FS.

I've attached a patch (for 2.3.38) that does this, plus a description to
show how it's used. The main limitation vs. the currrent approach is that
you can't just leave processes running somewhere in the old root and still
peek at their files. Not sure if anybody actually used that property.
(To let them run until they complete, and then unmount the old FS is okay,
though.) Added bonus: you can change root as many times as you wish.

There are still some issues with /proc/mounts, because hopping from one
root to the next obviously wrecks its semantics. I'm discussing this in
the description.

Comments welcome.

- Werner

-- 
  _________________________________________________________________________
 / Werner Almesberger, ICA, EPFL, CH       werner.almesberger@ica.epfl.ch /
/_IN_N_032__Tel_+41_21_693_6621__Fax_+41_21_693_6610_____________________/



- 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 : Sun Jan 23 2000 - 21:00:12 EST