9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: David Presotto <presotto@closedmind.org>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] bind -c[ab] -- what am I doing wrong?
Date: Thu, 17 Jul 2003 13:35:29 -0400	[thread overview]
Message-ID: <d2ccfed4a51795766ae834529f685e64@plan9.bell-labs.com> (raw)
In-Reply-To: <00b901c34c87$6d509780$b9844051@insultant.net>

[-- Attachment #1: Type: text/plain, Size: 506 bytes --]

The confusing part may be the implicit bind that happens
when you do

	bind -ca /sys/src/cmd $home/kern/cmd

The resulting mount point has to things in the link
list bound there:

	/sys/src/cmd	- containing the create flag
	$home/kern/cmd	- not containing the create flag

The latter is implicit since you were binding -a onto a
directory.  You would have gotten the semantics you
wanted if you had said instead:

	bind -c $home/kern/cmd $home/kern/cmd
	bind -ca /sys/src/cmd $home/kern/cmd

[-- Attachment #2: Type: message/rfc822, Size: 2559 bytes --]

From: "boyd, rounin" <boyd@insultant.net>
To: <9fans@cse.psu.edu>
Subject: Re: [9fans] bind -c[ab] -- what am I doing wrong?
Date: Thu, 17 Jul 2003 19:18:22 +0200
Message-ID: <00b901c34c87$6d509780$b9844051@insultant.net>

union directories are a linked list.

    - open finds you the first file in the list bound directories,
      in the order they were bound [before/after]

    - create choose the first directory which allows creation,
      in the order they were bound [before/after]

the order they were bound is not temporal, it's where you bind them.

it's that easy.


  parent reply	other threads:[~2003-07-17 17:35 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-17 16:13 andrey mirtchovski
2003-07-17 17:42 ` northern snowfall
2003-07-17 17:10   ` andrey mirtchovski
2003-07-17 17:18     ` boyd, rounin
2003-07-17 17:34       ` andrey mirtchovski
2003-07-17 17:37         ` David Presotto
2003-07-17 17:45         ` boyd, rounin
2003-07-17 18:07           ` andrey mirtchovski
2003-07-17 19:29             ` [9fans] Laptop and VM software vdharani
2003-07-17 18:34               ` jmk
2003-07-18  4:21                 ` Adrian Tritschler
2003-07-18  9:07                   ` vdharani
2003-07-18  8:24                     ` Adrian Tritschler
2003-07-18 11:52                   ` C H Forsyth
2003-07-19 17:28                 ` Russ Cox
2003-07-17 17:35       ` David Presotto [this message]
2003-07-17 17:30 [9fans] bind -c[ab] -- what am I doing wrong? Richard C Bilson
2003-07-17 20:09 northern snowfall

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d2ccfed4a51795766ae834529f685e64@plan9.bell-labs.com \
    --to=presotto@closedmind.org \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).