From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Thu, 29 Jan 2015 16:46:16 +0100 Message-ID: From: Giacomo Tesio To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=089e013d16747191d0050dcc630a Subject: Re: [9fans] A few questions about 9p Topicbox-Message-UUID: 3e17099c-ead9-11e9-9d60-3106f5b1d025 --089e013d16747191d0050dcc630a Content-Type: text/plain; charset=UTF-8 Actually I wasn't able to understand when the afid was supposed to be clunk reading attach 5. I was in doubt that the afid had to be the last fid clunked. Giacomo Il 29/Gen/2015 15:56 ha scritto: > size[4] Tattach tag[2] fid[4] afid[4] uname[s] aname[s] > size[4] Rattach tag[2] qid[13] > > you have to provide the afid in the Tattach, so clunking it before > attach makes no sense. you can pass NOFID to Tattach when when the > fileserver doesnt support authentification. > > you can also reuse the afid, so keeping it arround after Tattach > works just fine. > > if you only want todo a single attach, you can clunk it after the > Tattach. > > its all documented and better worded in attach(5). > > -- > cinap > > --089e013d16747191d0050dcc630a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Actually I wasn't able to understand when the afid was s= upposed to be clunk reading attach 5.

I was in doubt that the afid had to be the last fid clunked.=

Giacomo

Il 29/Gen/2015 15:56 <cinap_lenrek@felloff.net> ha scritto:
=C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 size[4] Tattach tag[2] fid[4] afid[4] uname[s] aname[s]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 size[4] Rattach tag[2] qid[13]

you have to provide the afid in the Tattach, so clunking it before
attach makes no sense. you can pass NOFID to Tattach when when the
fileserver doesnt support authentification.

you can also reuse the afid, so keeping it arround after Tattach
works just fine.

if you only want todo a single attach, you can clunk it after the
Tattach.

its all documented and better worded in attach(5).

--
cinap

--089e013d16747191d0050dcc630a--