9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Russ Cox <rsc@swtch.com>
To: Sergey Reva <rs_rlab@mail.ru>,
	Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu>
Subject: Re: [9fans] Right dot dot
Date: Mon, 12 Sep 2005 23:48:16 -0400	[thread overview]
Message-ID: <ee9e417a050912204814fcaef0@mail.gmail.com> (raw)
In-Reply-To: <211646106.20041208181530@mail.ru>

On December 9, 2004 [sic], Sergey Reva wrote:
> term%: pwd
> term%: /n/dump/2004/xxxx
> term%: lc
> xxxxxxxxxxxxxx
> xxxxxxxxxxxxxx
> xxxxxxxxxxxxxx
> term%: unmount /n/dump                  # how I can do this?
>                                         # I mean, Linux in this case
>                                         # say: ... busy ...

Linux is broken.  Not being able to unmount a file system
(thus stopping people from accessing it in the future)
shouldn't be held up by one or two processes that have 
open files on that file system.  It's not hard to get the reference
counts right, and Plan 9 does.  The 9P connection corresponding
to /n/dump won't be dropped until all the references go away,
but it can be removed from the name space at any time.

> term%: cd ..
>                                         # now I in /n/dump/2004
> term%: cd ..
>                                         # now I in /n/dump
> term%: cd ..
>                                         # now I in /n
> term%: lc                               # but, what I see?
> active archive snapshot
> term%:                                  # now I can browse all subfolders

Plan 9 is broken too.  The implementation of dotdot consults
the name space to answer the question "I just walked ..; what 
directory am I in?", but you removed the necessary entry
from the name space!

This is a nice example why the dotdot algorithm isn't quite right.
(I have previously posted much more complicated and less
understandable examples of the same.)  Thanks.  I missed this
email the first time it went by (I was out of town and only skimming
mail), but it was a joy to discover, even nine months late.

There is a new dotdot algorithm in the works.
Russ


      reply	other threads:[~2005-09-13  3:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-08 16:15 Sergey Reva
2005-09-13  3:48 ` Russ Cox [this message]

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=ee9e417a050912204814fcaef0@mail.gmail.com \
    --to=rsc@swtch.com \
    --cc=9fans@cse.psu.edu \
    --cc=rs_rlab@mail.ru \
    /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).