9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] bind -c[ab] -- what am I doing wrong?
@ 2003-07-17 16:13 andrey mirtchovski
  2003-07-17 17:42 ` northern snowfall
  0 siblings, 1 reply; 16+ messages in thread
From: andrey mirtchovski @ 2003-07-17 16:13 UTC (permalink / raw)
  To: 9fans

It is my understanding that a bind() should be "commutative" with respect to
before/after, i.e.:

	bind -cb new old <==> bind -ca old new

why does the following create fail?

	plan9% bind -cb $home/kern/cmd /sys/src/cmd
	plan9% touch /sys/src/cmd/blah		# expected to succeed
	plan9% ls -l $home/kern/cmd/blah
	--rw-rw-r-- M 159 andrey andrey 0 Jul 17 10:06 /usr/andrey/kern/cmd/blah
	plan9% unmount /sys/src/cmd
	plan9% rm $home/kern/cmd/blah
	plan9% bind -ca /sys/src/cmd $home/kern/cmd
	plan9% touch $home/kern/cmd/blah	# expected to succeed
	touch: /usr/andrey/kern/cmd/blah: cannot create: permission denied
	plan9% touch /sys/src/cmd/blah		# expected to fail
	touch: /sys/src/cmd/blah: cannot create: permission denied
	plan9%

who's to blame?



^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2003-07-19 17:28 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-17 16:13 [9fans] bind -c[ab] -- what am I doing wrong? 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       ` [9fans] bind -c[ab] -- what am I doing wrong? David Presotto

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).