Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[9fans] bind and namespace

0 views
Skip to first unread message

Antonin Vecera

unread,
Sep 26, 2007, 2:33:00 AM9/26/07
to
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

Gorka Guardiola

unread,
Sep 26, 2007, 2:56:04 AM9/26/07
to
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

Antonin Vecera

unread,
Sep 26, 2007, 3:57:27 AM9/26/07
to
On 9/26/07, Gorka Guardiola <pau...@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

Gorka Guardiola

unread,
Sep 26, 2007, 4:30:27 AM9/26/07
to
On 9/26/07, Antonin Vecera <antonin...@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.

Antonin Vecera

unread,
Sep 26, 2007, 5:07:05 AM9/26/07
to
On 9/26/07, Gorka Guardiola <pau...@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

Antonin

Martin Neubauer

unread,
Sep 26, 2007, 5:16:19 AM9/26/07
to
* Antonin Vecera (antonin...@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

Antonin Vecera

unread,
Sep 26, 2007, 5:34:04 AM9/26/07
to
Yes. Now it does sense to me.
Thank you! :-)

Antonin

0 new messages