9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] 'cd' into non-existent directory?
@ 2009-02-13 10:23 Pavel Klinkovsky
  2009-02-13 10:39 ` Felipe Bichued
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Pavel Klinkovsky @ 2009-02-13 10:23 UTC (permalink / raw)
  To: 9fans

Hello all,

it seems I missed something but...

If I enter the /n directory, I can make 'cd' command into non-existent
(not mounted) 'directory' (or filesystem) successfully.

% cd /n
% ls
9
9fat
...
% cd blahblah
% pwd
/n/blahblah

Can you explain me, why it happens?

Thanks in advance.

Pavel



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

* Re: [9fans] 'cd' into non-existent directory?
  2009-02-13 10:23 [9fans] 'cd' into non-existent directory? Pavel Klinkovsky
@ 2009-02-13 10:39 ` Felipe Bichued
  2009-02-13 10:40 ` Gorka Guardiola
  2009-02-13 11:48 ` Pavel Klinkovsky
  2 siblings, 0 replies; 11+ messages in thread
From: Felipe Bichued @ 2009-02-13 10:39 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

mntgen(4)

On Fri, Feb 13, 2009 at 8:23 AM, Pavel Klinkovsky
<pavel.klinkovsky@gmail.com> wrote:
> Hello all,
>
> it seems I missed something but...
>
> If I enter the /n directory, I can make 'cd' command into non-existent
> (not mounted) 'directory' (or filesystem) successfully.
>
> % cd /n
> % ls
> 9
> 9fat
> ...
> % cd blahblah
> % pwd
> /n/blahblah
>
> Can you explain me, why it happens?
>
> Thanks in advance.
>
> Pavel
>
>



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

* Re: [9fans] 'cd' into non-existent directory?
  2009-02-13 10:23 [9fans] 'cd' into non-existent directory? Pavel Klinkovsky
  2009-02-13 10:39 ` Felipe Bichued
@ 2009-02-13 10:40 ` Gorka Guardiola
  2009-02-13 11:48 ` Pavel Klinkovsky
  2 siblings, 0 replies; 11+ messages in thread
From: Gorka Guardiola @ 2009-02-13 10:40 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On Fri, Feb 13, 2009 at 11:23 AM, Pavel Klinkovsky
<pavel.klinkovsky@gmail.com> wrote:
> Hello all,
>
> it seems I missed something but...
>
> If I enter the /n directory, I can make 'cd' command into non-existent
> (not mounted) 'directory' (or filesystem) successfully.
>
> % cd /n
> % ls
> 9
> 9fat
> ...
> % cd blahblah
> % pwd
> /n/blahblah
>
> Can you explain me, why it happens?
>

man 4 mntgen



--
- curiosity sKilled the cat



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

* Re: [9fans] 'cd' into non-existent directory?
  2009-02-13 10:23 [9fans] 'cd' into non-existent directory? Pavel Klinkovsky
  2009-02-13 10:39 ` Felipe Bichued
  2009-02-13 10:40 ` Gorka Guardiola
@ 2009-02-13 11:48 ` Pavel Klinkovsky
  2009-02-13 12:28   ` Anthony Sorace
  2009-02-13 13:27   ` Pavel Klinkovsky
  2 siblings, 2 replies; 11+ messages in thread
From: Pavel Klinkovsky @ 2009-02-13 11:48 UTC (permalink / raw)
  To: 9fans

Thanks a lot.

"It is intended to supply mount points automatically."
What is it good for?

Pavel



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

* Re: [9fans] 'cd' into non-existent directory?
  2009-02-13 11:48 ` Pavel Klinkovsky
@ 2009-02-13 12:28   ` Anthony Sorace
  2009-02-13 13:25     ` Bruce Ellis
  2009-02-13 13:27   ` Pavel Klinkovsky
  1 sibling, 1 reply; 11+ messages in thread
From: Anthony Sorace @ 2009-02-13 12:28 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

9fs, for example.

i can do '9fs arbitrary-machine', and not have to worry about whether
/n/arbitrary-machine has been created ahead of time or now. that's the
most common use. without it, you'd have to create mount points in
advance of knowing what sets of things you'd want to mount.

it has downsides, like your "phantom cd", which is why it's only used
where it makes sense.



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

* Re: [9fans] 'cd' into non-existent directory?
  2009-02-13 12:28   ` Anthony Sorace
@ 2009-02-13 13:25     ` Bruce Ellis
  0 siblings, 0 replies; 11+ messages in thread
From: Bruce Ellis @ 2009-02-13 13:25 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

I find it kind of ironic that Anthony is replying to a "missing
directory" question. Please check the requests on the list that i
could not satisfy and put together the pieces.

your humble servant.

brucee

On Fri, Feb 13, 2009 at 11:28 PM, Anthony Sorace <anothy@gmail.com> wrote:
> 9fs, for example.
>
> i can do '9fs arbitrary-machine', and not have to worry about whether
> /n/arbitrary-machine has been created ahead of time or now. that's the
> most common use. without it, you'd have to create mount points in
> advance of knowing what sets of things you'd want to mount.
>
> it has downsides, like your "phantom cd", which is why it's only used
> where it makes sense.
>
>



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

* Re: [9fans] 'cd' into non-existent directory?
  2009-02-13 11:48 ` Pavel Klinkovsky
  2009-02-13 12:28   ` Anthony Sorace
@ 2009-02-13 13:27   ` Pavel Klinkovsky
  2009-02-13 13:34     ` erik quanstrom
  1 sibling, 1 reply; 11+ messages in thread
From: Pavel Klinkovsky @ 2009-02-13 13:27 UTC (permalink / raw)
  To: 9fans

Alternatively, if '9fs' would 'mkdir' automatically, the sequence
would be:
- 9fs (automatic 'mkdir' and 'mount')
- ...usage...
- user 'unmounts' the fs...
- ...and the directory is still present... :-(

Clear, thanks for explanation.

Pavel



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

* Re: [9fans] 'cd' into non-existent directory?
  2009-02-13 13:27   ` Pavel Klinkovsky
@ 2009-02-13 13:34     ` erik quanstrom
  2009-02-13 14:17       ` Bruce Ellis
  0 siblings, 1 reply; 11+ messages in thread
From: erik quanstrom @ 2009-02-13 13:34 UTC (permalink / raw)
  To: 9fans

On Fri Feb 13 08:32:56 EST 2009, pavel.klinkovsky@gmail.com wrote:
> Alternatively, if '9fs' would 'mkdir' automatically, the sequence
> would be:
> - 9fs (automatic 'mkdir' and 'mount')
> - ...usage...
> - user 'unmounts' the fs...
> - ...and the directory is still present... :-(

actually, the more likely result would be "permission denied".
you'd need to mount ramfs on /n to do it this way.

- erik



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

* Re: [9fans] 'cd' into non-existent directory?
  2009-02-13 13:34     ` erik quanstrom
@ 2009-02-13 14:17       ` Bruce Ellis
  2009-02-13 20:21         ` Skip Tavakkolian
  0 siblings, 1 reply; 11+ messages in thread
From: Bruce Ellis @ 2009-02-13 14:17 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Correct. Please ... no speculative posts - blokes. Test it first. If
that isn't obvious please go to slashdot and contribute to the open
sewer, the consensus of the ill-informed.

brucee

On Sat, Feb 14, 2009 at 12:34 AM, erik quanstrom <quanstro@quanstro.net> wrote:
> On Fri Feb 13 08:32:56 EST 2009, pavel.klinkovsky@gmail.com wrote:
>> Alternatively, if '9fs' would 'mkdir' automatically, the sequence
>> would be:
>> - 9fs (automatic 'mkdir' and 'mount')
>> - ...usage...
>> - user 'unmounts' the fs...
>> - ...and the directory is still present... :-(
>
> actually, the more likely result would be "permission denied".
> you'd need to mount ramfs on /n to do it this way.
>
> - erik
>
>



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

* Re: [9fans] 'cd' into non-existent directory?
  2009-02-13 14:17       ` Bruce Ellis
@ 2009-02-13 20:21         ` Skip Tavakkolian
  2009-02-15 20:33           ` Bruce Ellis
  0 siblings, 1 reply; 11+ messages in thread
From: Skip Tavakkolian @ 2009-02-13 20:21 UTC (permalink / raw)
  To: 9fans

> slashdot and contribute to the open
> sewer, the consensus of the ill-informed.

i nominate it for the fortunes file:

"slashdot: the consensus of the ill-informed"  -brucee




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

* Re: [9fans] 'cd' into non-existent directory?
  2009-02-13 20:21         ` Skip Tavakkolian
@ 2009-02-15 20:33           ` Bruce Ellis
  0 siblings, 0 replies; 11+ messages in thread
From: Bruce Ellis @ 2009-02-15 20:33 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

"Ritualistic humiliation is too good for them." -leonora

On Sat, Feb 14, 2009 at 7:21 AM, Skip Tavakkolian <9nut@9netics.com> wrote:
>> slashdot and contribute to the open
>> sewer, the consensus of the ill-informed.
>
> i nominate it for the fortunes file:
>
> "slashdot: the consensus of the ill-informed"  -brucee
>
>
>



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

end of thread, other threads:[~2009-02-15 20:33 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-13 10:23 [9fans] 'cd' into non-existent directory? Pavel Klinkovsky
2009-02-13 10:39 ` Felipe Bichued
2009-02-13 10:40 ` Gorka Guardiola
2009-02-13 11:48 ` Pavel Klinkovsky
2009-02-13 12:28   ` Anthony Sorace
2009-02-13 13:25     ` Bruce Ellis
2009-02-13 13:27   ` Pavel Klinkovsky
2009-02-13 13:34     ` erik quanstrom
2009-02-13 14:17       ` Bruce Ellis
2009-02-13 20:21         ` Skip Tavakkolian
2009-02-15 20:33           ` Bruce Ellis

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