9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Unmount of /mnt directory
@ 2009-06-24  9:02 Pavel Klinkovsky
  2009-06-24 11:41 ` erik quanstrom
  2009-06-24 13:06 ` Pavel Klinkovsky
  0 siblings, 2 replies; 3+ messages in thread
From: Pavel Klinkovsky @ 2009-06-24  9:02 UTC (permalink / raw)
  To: 9fans

Hi all,

it seems I still do not fully understand namespaces.
But this sequence seems strange to me:

cdfs -d /dev/sdD0
unmount /mnt/cd

...everything is OK.

cdfs -d /dev/sdD0
unmount /mnt

...I unmounted wrong directory...

cdfs -d /dev/sdD0
cdfs: openscsi '/dev/sdD0': '/dev/sdD0/raw' device or object already
in use

...this situation is persistent.

What happened in the system when I unmounted /mnt directory?

Thanks for explanation beforehand.

Pavel



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

* Re: [9fans] Unmount of /mnt directory
  2009-06-24  9:02 [9fans] Unmount of /mnt directory Pavel Klinkovsky
@ 2009-06-24 11:41 ` erik quanstrom
  2009-06-24 13:06 ` Pavel Klinkovsky
  1 sibling, 0 replies; 3+ messages in thread
From: erik quanstrom @ 2009-06-24 11:41 UTC (permalink / raw)
  To: 9fans

> it seems I still do not fully understand namespaces.
> But this sequence seems strange to me:
>
> cdfs -d /dev/sdD0
> unmount /mnt/cd
>
> ...everything is OK.
>
> cdfs -d /dev/sdD0
> unmount /mnt
>
> ...I unmounted wrong directory...
>
> cdfs -d /dev/sdD0
> cdfs: openscsi '/dev/sdD0': '/dev/sdD0/raw' device or object already
> in use
>
> ...this situation is persistent.
>
> What happened in the system when I unmounted /mnt directory?

on my system /mnt is constructed like this

	chula# ns | grep '/mnt $'
	bind -c /root/mnt /mnt
	mount -a '#s/factotum' /mnt

if i unmount /mnt i get

	chula# unmount /mnt
	chula#  '/mnt $'

it might be surprising that, e.g.,
	mount -c '#D/ssl/2/data' /mnt/term
is not unmounted, but the mntpt isn't /mnt,
it's /mnt/term.  things below /mnt are not
accessable because we must walk from the
root.

with this knowledge, one can reconstruct
the former namespace and unmount /mnt/cd.

	chula# bind -c /root/mnt /mnt
	chula# mount -a '#s/factotum' /mnt
	chula# unmount /mnt/cd

alternatevely, "slay cdfs | rc" would work,
if you didn't care about that ns being screwy.

- erik



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

* Re: [9fans] Unmount of /mnt directory
  2009-06-24  9:02 [9fans] Unmount of /mnt directory Pavel Klinkovsky
  2009-06-24 11:41 ` erik quanstrom
@ 2009-06-24 13:06 ` Pavel Klinkovsky
  1 sibling, 0 replies; 3+ messages in thread
From: Pavel Klinkovsky @ 2009-06-24 13:06 UTC (permalink / raw)
  To: 9fans

> it might be surprising that, e.g.,
>         mount -c '#D/ssl/2/data' /mnt/term
> is not unmounted, but the mntpt isn't /mnt,
> it's /mnt/term.  things below /mnt are not
> accessable because we must walk from the
> root.
In fact, this is the most confusing point... ;-)

Thanks for explanation.

Pavel



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

end of thread, other threads:[~2009-06-24 13:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-24  9:02 [9fans] Unmount of /mnt directory Pavel Klinkovsky
2009-06-24 11:41 ` erik quanstrom
2009-06-24 13:06 ` Pavel Klinkovsky

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).