From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Mon, 14 Nov 2005 08:41:39 +0100 From: "Nils O. =?ISO-8859-1?Q?Sel=E5sdal?=" Subject: Re: [9fans] webfs on p9p In-reply-to: <000001c5e8d8$57d4a1e0$14aaa8c0@utelsystems.local> To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Message-id: <1131954099.2897.82.camel@nos-rh.utelsystems.local> MIME-version: 1.0 Content-type: text/plain; charset=UTF-8 Content-transfer-encoding: quoted-printable References: <000001c5e8d8$57d4a1e0$14aaa8c0@utelsystems.local> Topicbox-Message-UUID: ad124dba-ead0-11e9-9d60-3106f5b1d025 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 =20 > weekend, I thought I'd have a poke at porting webfs to p9p; after =20 > 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 =20 > 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 =20 > namespace, I can make a new connection, but I can't seem to write a =20 > uri to it using 9p: > % echo 'url http://slashdot.org/' | 9p write webfs/0/ctl > 9: write error: parseurl: newline in URI >=20 > 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) > % >=20 > No URL. Am I sending it wrong? Or do I have to find where the file =20 > 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 c= losed,=20 and is then will be reallocated." Under Plan 9 , if you're seated in /mnt/web/, it'd be e.g.: { dir=3D`{read} ; echo -n 'url http://slashdot.org/' >$dir/ctl ; cat $dir/body }<>clone --=20 Nils O. Sel=C3=A5sdal