9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Rob Pike <robpike@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu>
Subject: Re: [9fans] simple questions on bind semantics
Date: Mon, 27 Sep 2004 17:51:54 -0700	[thread overview]
Message-ID: <7359f049040927175156a92c6b@mail.gmail.com> (raw)
In-Reply-To: <20040928004656.GA2117@submarine>

Because bind and mount are implemented by a simple substitution.
When a walk hits a file that has been bound to, the fid is dropped
and then replaced by a clone of the fid of the result of the bind.
To have a fid, one needs a file, hence the fid must exist.

There's nothing stopping a service from creating bind destinations
on demand, and I think this has even been done in a special
device(memory is vague), but fundamentally, bind needs a file to
bind to.

-rob


On Mon, 27 Sep 2004 17:46:57 -0700, Roman Shaposhnick <rvs@sun.com> wrote:
> I have a deja vu feeling that this might have been asked here before.
> But since the mighty google disagrees here it goes: why does bind
> have a restriction that old has be existent ? Basically why can't
> I do:
> 
>    $ bind /some-file /new-name-for-some-file ?
> 
> where there's no /new-name-for-some-file before the call ?
> 
> Thanks,
> Roman.
>


  reply	other threads:[~2004-09-28  0:51 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-28  0:46 Roman Shaposhnick
2004-09-28  0:51 ` Rob Pike [this message]
2004-09-28 13:57   ` C H Forsyth
2004-09-29  1:08     ` Roman Shaposhnick
2004-09-29  1:23       ` andrey mirtchovski
2004-09-29  8:37         ` Fco. J. Ballesteros
2004-09-29  3:13   ` Roman Shaposhnick
2004-09-29 17:06   ` Richard Miller
2004-10-01 17:36     ` Roman Shaposhnick

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=7359f049040927175156a92c6b@mail.gmail.com \
    --to=robpike@gmail.com \
    --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).