9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Russ Cox" <rsc@swtch.com>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] bringing down vacfs in p9p
Date: Thu,  9 Mar 2006 09:01:38 -0500	[thread overview]
Message-ID: <1435c2b7fb3842951b2fbc204e2fd3f8@swtch.com> (raw)
In-Reply-To: <a2d238df0603090208w29f13e76r@mail.gmail.com>

> In plan 9 I can do an rm /srv/vacfs.test which immediately
> removes the file causing vacfs to exit.

This is only true if vacfs is not mounted anywhere.
If someone's using it, removing the srv file won't
make vacfs exit.  Vacfs exits when reading from its
9P pipe returns eof.  That happens on Plan 9 when
all references to the other end of the pipe have
gone away.

> It'd be nice if rm `{namespace}^/vacfs.test would do the
> same in p9p but it doesn't since unix won't remove the socket file
> until vacfs closes it. I've resorted to 9 kill vacfs | rc
> which doesn't seem right.
>
> Is there something I'm missing? Is kill not that bad?

Kill is not that bad.  If you wanted to simulate Plan 9
and force an eof on the 9P pipe, you could kill the
appropriate 9pserve.

I can't think of any file servers that need to be shut
down gracefully on p9p except acme (which has an
Exit command).

Russ



      parent reply	other threads:[~2006-03-09 14:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-09 10:08 Eoghan Sherry
2006-03-09 12:57 ` erik quanstrom
2006-03-09 14:01 ` 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=1435c2b7fb3842951b2fbc204e2fd3f8@swtch.com \
    --to=rsc@swtch.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).