From: presotto@plan9.bell-labs.com
To: 9fans@cse.psu.edu
Subject: re: [9fans] bind -ac B A
Date: Tue, 4 Jul 2000 09:20:02 -0400 [thread overview]
Message-ID: <200007041320.JAA23671@cse.psu.edu> (raw)
In answer to kenji's paradox...
Perhaps this will help explain:
% mkdir A
% mkdir B
% bind -a B A
% touch A/x
touch: A/x: cannot create: mounted directory forbids creation
% unmount A
% bind -c A A
% bind -ac B A
% touch A/x
% unmount A
% ls -l A B
--rw-rw-r-- M 6 presotto presotto 0 Jul 4 08:52 A/x
%
A mount point is an ordered list of binds and mounts. If
you do
% bind -a B A
onto an A that isn't already a mount point, then there's
no list of mount/bind's to chain this one after. Therfore,
the kernel does an implicit bind of A onto A to be the first mount
point in the list. It then appends the bind of B onto A to the
list. That first inplicit bind doesn't have the create bit set
so B is the first thing in the list with create priviledge.
The original version of plan 9 actually required you to
explicitly bind A onto itself before letting you bind
B onto A. That was a bit awkward so we made it automatic.
Unfortunately, we may also make it counterintuitive but
I like not typing all those gratuitous extra binds.
next reply other threads:[~2000-07-04 13:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-07-04 13:20 presotto [this message]
-- strict thread matches above, loose matches on Subject: below --
2000-07-04 10:11 arisawa
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=200007041320.JAA23671@cse.psu.edu \
--to=presotto@plan9.bell-labs.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).