On Wed, Apr 13, 2011 at 10:51:32AM -0400, Phillip Susi wrote: > On 4/13/2011 3:16 AM, Karel Zak wrote: > > The recursive umount is not implemented, I'd like to add this feature > > after [u]mount(8) rewrite to libmount. > > > > Note that nowhere (especially on systems without regular mtab) is > > stored information that the tree was created by recursive bind > > mounts. It will be necessary to call umount with a --recursive > > command line option. > > I was wondering about that. Perhaps the kernel needs patched to alias > rbind to bind internally so that mount can pass rbind instead of bind > and have it be remembered in /proc/mounts? Then umount can assume it > should recursively unmount any bind mounts. "bind" is not remembered in /proc/mounts (and rbind is MS_BIND|MS_REC). As I said in the second previous e-mail, remember "bind" in kernel does not make sense. Karel -- Karel Zak <kzak@xxxxxxxxxx> http://karelzak.blogspot.com -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html