9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Nils O. Selåsdal" <NOS@Utel.no>
To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu>
Subject: Re: [9fans] webfs on p9p
Date: Mon, 14 Nov 2005 08:41:39 +0100	[thread overview]
Message-ID: <1131954099.2897.82.camel@nos-rh.utelsystems.local> (raw)
In-Reply-To: <000001c5e8d8$57d4a1e0$14aaa8c0@utelsystems.local>

On Mon, 2005-11-14 at 06:00 +0100, Paul Lalonde wrote:
> Call me a masochist, but in a fit of writing much too much code this  
> weekend, I thought I'd have a poke at porting webfs to p9p; after  
> all, we can't let only native plan9 people benefit from abaco :-)
> I haven't had a working plan9 box since my shuttle died, so I'm  
> wondering if I  have a bug or if I just don't understand webfs.
> Overall it's looking good: the synthetic file system shows up in my  
> namespace, I can make a new connection, but I can't seem to write a  
> uri to it using 9p:
> % echo 'url http://slashdot.org/' | 9p write webfs/0/ctl
> 9: write error:  parseurl: newline in URI
> 
> So I ditch the newline put on by echo:
> % echo 'url http://slashdot.org/' | 9p write webfs/0/ctl
> % 9p read webfs/0/ctl
> 	0
> acceptcookies on
> sendcookies on
> redirectlimit 10
> useragent webfs/2.0 (plan 9)
> %
> 
> No URL.  Am I sending it wrong?  Or do I have to find where the file  
> server is hooped?

It'd probably be a nice feature if webfs ignored slashdot.org. However
you probably must hold on to references to the webfs files.
"A connection is assumed closed once all files in its directory have been closed, 
and is then will be reallocated."

Under Plan 9 , if you're seated in /mnt/web/, it'd be e.g.:
{ dir=`{read} ; echo -n 'url http://slashdot.org/' >$dir/ctl ; cat
$dir/body }<>clone

-- 
Nils O. Selåsdal <NOS@Utel.no>



       reply	other threads:[~2005-11-14  7:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <000001c5e8d8$57d4a1e0$14aaa8c0@utelsystems.local>
2005-11-14  7:41 ` Nils O. Selåsdal [this message]
2005-11-14 17:44   ` Paul Lalonde
2005-11-14 19:38     ` Russ Cox
2005-11-14 20:30       ` Paul Lalonde
2005-11-14  4:44 Paul Lalonde

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=1131954099.2897.82.camel@nos-rh.utelsystems.local \
    --to=nos@utel.no \
    --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).