lkml.org 
[lkml]   [2000]   [Jan]   [27]   [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:
> 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/

\
 
 \ /
  Last update: 2005-03-22 13:56    [W:0.085 / U:0.324 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site