Messages in this thread | | | Date | Thu, 27 Jan 2000 09:29:51 +0100 | From | almesber@lrc ... | Subject | Re: [PATCH] root-hopping for pre-2.3.41-3 |
| |
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@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/
| |