[PATCH] root-hopping for pre-2.3.41-3
almesber en lrc.di.epfl.ch
almesber en lrc.di.epfl.ch
Jue Ene 27 03:35:10 CST 2000
Horst von Brand wrote:
> Might be useful in other cases too (it would in fact provide atomic umount
> + mount another fs) if used elsewhere.
Matthew Wilcox has a patch for 2.2.14 that does this. In fact, a
"move-mount" is even a bit simpler than pivot_root, because you
have two directories instead of three.
Note that you don't really need to do any cleanup, because you never
do a real unmount. All you need to do is to grab the kernel lock in
order to prevent other processes from crossing the mount points while
you're changing them.
- Werner
--
_________________________________________________________________________
/ Werner Almesberger, ICA, EPFL, CH werner.almesberger en 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 en vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
Más información sobre la lista de distribución Ayuda