linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Mounts and namespaces
@ 2007-09-03 16:23 Jan Engelhardt
  2007-09-03 16:26 ` Al Viro
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Engelhardt @ 2007-09-03 16:23 UTC (permalink / raw)
  To: Linux Kernel Mailing List

Hi,


what happens to mounts when the namespace they exist in, exits?
In my concrete case:

	./newns /bin/bash
	# clone(CLONE_NEWNS | CLONE_THREAD | CLONE_SIGHAND | CLONE_VM)
	# and exec to given program
	mount /dev/loop0 /mnt
	exit

Still mounted and unreachable forever? Forced unmount and fs corruption?


	Jan
-- 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Mounts and namespaces
  2007-09-03 16:23 Mounts and namespaces Jan Engelhardt
@ 2007-09-03 16:26 ` Al Viro
  0 siblings, 0 replies; 2+ messages in thread
From: Al Viro @ 2007-09-03 16:26 UTC (permalink / raw)
  To: Jan Engelhardt; +Cc: Linux Kernel Mailing List

On Mon, Sep 03, 2007 at 06:23:18PM +0200, Jan Engelhardt wrote:
> Hi,
> 
> 
> what happens to mounts when the namespace they exist in, exits?
> In my concrete case:
> 
> 	./newns /bin/bash
> 	# clone(CLONE_NEWNS | CLONE_THREAD | CLONE_SIGHAND | CLONE_VM)
> 	# and exec to given program
> 	mount /dev/loop0 /mnt
> 	exit
> 
> Still mounted and unreachable forever? Forced unmount and fs corruption?

lazy umount.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-09-03 16:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-03 16:23 Mounts and namespaces Jan Engelhardt
2007-09-03 16:26 ` Al Viro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).