* [9fans] bind and namespace
@ 2007-09-26 6:32 Antonin Vecera
2007-09-26 6:55 ` Gorka Guardiola
0 siblings, 1 reply; 7+ messages in thread
From: Antonin Vecera @ 2007-09-26 6:32 UTC (permalink / raw)
To: 9fans
Hi all,
can somebody help me to understand to bind and namespace ?
I made dir for manual pages in my $home and I wanted to bind it to /sys/man .
I typed:
1. term% bind -a $home/man/4 /sys/man/4
2. term% ns
3. bind /sys/man/4 /sys/man/4
4. bind -a /usr/antonin/man/4 /sys/man/4
5. term% unmount /sys/man/4 /sys/man/4
6. term% ns
7. bind /sys/man/4 /sys/man/4
a) I don't understand why is in my namespace added 3-th line?
b) if I unmounted /sys/man/4 on 5-th line, why is unmounted my
$home/man/4 instead and /sys/man/4 resides?
Antonin
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [9fans] bind and namespace
2007-09-26 6:32 [9fans] bind and namespace Antonin Vecera
@ 2007-09-26 6:55 ` Gorka Guardiola
2007-09-26 7:56 ` Antonin Vecera
0 siblings, 1 reply; 7+ messages in thread
From: Gorka Guardiola @ 2007-09-26 6:55 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
When you do a bind -a or a bind -b you have a union mount. That means
means "add something to what there already is there", be it before or
after. You need an entry
for what there is already there so it gets resolved. That are the
extra lines you are looking at.
--
- curiosity sKilled the cat
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [9fans] bind and namespace
2007-09-26 6:55 ` Gorka Guardiola
@ 2007-09-26 7:56 ` Antonin Vecera
2007-09-26 8:29 ` Gorka Guardiola
0 siblings, 1 reply; 7+ messages in thread
From: Antonin Vecera @ 2007-09-26 7:56 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
On 9/26/07, Gorka Guardiola <paurea@gmail.com> wrote:
> When you do a bind -a or a bind -b you have a union mount. That means
> means "add something to what there already is there", be it before or
> after. You need an entry
Till now it's clear.
> for what there is already there so it gets resolved. That are the
> extra lines you are looking at.
...sorry, i don't understand. :-(
Why 1 bind command adds 2! lines with bind command to my namespace?
Why is added "bind /sys/man/4 /sys/man/4" to namespace?
Why is one dir mounted to itself?
Antonin
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [9fans] bind and namespace
2007-09-26 7:56 ` Antonin Vecera
@ 2007-09-26 8:29 ` Gorka Guardiola
2007-09-26 9:06 ` Antonin Vecera
0 siblings, 1 reply; 7+ messages in thread
From: Gorka Guardiola @ 2007-09-26 8:29 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
On 9/26/07, Antonin Vecera <antonin.vecera@gmail.com> wrote:
> Why 1 bind command adds 2! lines with bind command to my namespace?
> Why is added "bind /sys/man/4 /sys/man/4" to namespace?
> Why is one dir mounted to itself?
>
say you run:
bind -a /bla /tiki
This means "add an entry in the table under /tiki after what already exists".
If this is the first entry you have for /tiki, after doesn´t make
sense, you need
something already there. Hence, another entry binding /tiki in /tiki is added
before yours.
--
- curiosity sKilled the cat
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [9fans] bind and namespace
2007-09-26 8:29 ` Gorka Guardiola
@ 2007-09-26 9:06 ` Antonin Vecera
2007-09-26 9:15 ` Martin Neubauer
0 siblings, 1 reply; 7+ messages in thread
From: Antonin Vecera @ 2007-09-26 9:06 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
On 9/26/07, Gorka Guardiola <paurea@gmail.com> wrote:
> On 9/26/07, Antonin Vecera <antonin.vecera@gmail.com> wrote:
> > Why 1 bind command adds 2! lines with bind command to my namespace?
> > Why is added "bind /sys/man/4 /sys/man/4" to namespace?
> > Why is one dir mounted to itself?
> >
>
> say you run:
>
> bind -a /bla /tiki
>
> This means "add an entry in the table under /tiki after what already exists".
> If this is the first entry you have for /tiki, after doesn´t make
> sense, you need
> something already there. Hence, another entry binding /tiki in /tiki is added
> before yours.
In my home profile is "bind -a $home/bin/rc /bin" .
Why is not in my namespace line "bind -a /bin /bin" ?
What is different between
bind -a $home/bin/rc /bin
and
bind -a $home/man/4 /sys/man/4 ?
Antonin
Antonin
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [9fans] bind and namespace
2007-09-26 9:06 ` Antonin Vecera
@ 2007-09-26 9:15 ` Martin Neubauer
2007-09-26 9:33 ` Antonin Vecera
0 siblings, 1 reply; 7+ messages in thread
From: Martin Neubauer @ 2007-09-26 9:15 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
* Antonin Vecera (antonin.vecera@gmail.com) wrote:
> In my home profile is "bind -a $home/bin/rc /bin" .
> Why is not in my namespace line "bind -a /bin /bin" ?
> What is different between
> bind -a $home/bin/rc /bin
> and
> bind -a $home/man/4 /sys/man/4 ?
>
> Antonin
Essentially because before there is something like
bind $cputype/bin /bin
That assures that that there already is something $home/bin/rc can be
unioned to.
Martin
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [9fans] bind and namespace
2007-09-26 9:15 ` Martin Neubauer
@ 2007-09-26 9:33 ` Antonin Vecera
0 siblings, 0 replies; 7+ messages in thread
From: Antonin Vecera @ 2007-09-26 9:33 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
Yes. Now it does sense to me.
Thank you! :-)
Antonin
On 9/26/07, Martin Neubauer <m.ne@gmx.net> wrote:
> * Antonin Vecera (antonin.vecera@gmail.com) wrote:
> > In my home profile is "bind -a $home/bin/rc /bin" .
> > Why is not in my namespace line "bind -a /bin /bin" ?
> > What is different between
> > bind -a $home/bin/rc /bin
> > and
> > bind -a $home/man/4 /sys/man/4 ?
> >
> > Antonin
>
> Essentially because before there is something like
> bind $cputype/bin /bin
>
> That assures that that there already is something $home/bin/rc can be
> unioned to.
>
> Martin
>
>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2007-09-26 9:33 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-26 6:32 [9fans] bind and namespace Antonin Vecera
2007-09-26 6:55 ` Gorka Guardiola
2007-09-26 7:56 ` Antonin Vecera
2007-09-26 8:29 ` Gorka Guardiola
2007-09-26 9:06 ` Antonin Vecera
2007-09-26 9:15 ` Martin Neubauer
2007-09-26 9:33 ` Antonin Vecera
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).