From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 From: Skip Tavakkolian Date: Tue, 31 Mar 2015 23:23:16 +0000 Message-ID: To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=001a1134a6162d196705129de261 Subject: [9fans] puzzling 9P server / 9pcon interaction Topicbox-Message-UUID: 4c571f38-ead9-11e9-9d60-3106f5b1d025 --001a1134a6162d196705129de261 Content-Type: text/plain; charset=UTF-8 i'm trying to test a new 9P fs with 9pcon. after posting the file server's fd to /srv, it can be mounted (e.g. mount /srv/foo /n/foo) and walked correctly. trying 9pcon on the same fd (e.g. aux/9pcon /srv/foo) results in "inappropriate use of fd". any ideas? fyi, the 9p code is from scartch based on re-re-reading of 0intro(5) docs, so it is entirely possible i missed something subtle that 9pcon doesn't tolerate. --001a1134a6162d196705129de261 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
i'm trying to test a new 9P fs with 9pcon. after = posting the file server's fd to /srv, it can be mounted (e.g. mount /sr= v/foo /n/foo) and walked correctly. =C2=A0trying 9pcon on the same fd (e.g.= aux/9pcon /srv/foo) results in "inappropriate use of fd".
<= div>
any ideas? =C2=A0fyi, the 9p code is from scartch based = on re-re-reading of 0intro(5) docs, so it is entirely possible i missed som= ething subtle that 9pcon doesn't tolerate.

--001a1134a6162d196705129de261-- From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Wed, 1 Apr 2015 15:03:23 +0100 Message-ID: From: Charles Forsyth To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=047d7bf0c39aa94c6a0512aa2dc6 Subject: Re: [9fans] puzzling 9P server / 9pcon interaction Topicbox-Message-UUID: 4c77f62c-ead9-11e9-9d60-3106f5b1d025 --047d7bf0c39aa94c6a0512aa2dc6 Content-Type: text/plain; charset=UTF-8 On 1 April 2015 at 00:23, Skip Tavakkolian wrote: > trying 9pcon on the same fd (e.g. aux/9pcon /srv/foo) results in > "inappropriate use of fd". You aren't allowed to read or write an fd directly once it has been used for 9P traffic by mount (devmnt). --047d7bf0c39aa94c6a0512aa2dc6 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

= On 1 April 2015 at 00:23, Skip Tavakkolian <skip.tavakkolian@gmai= l.com> wrote:
=C2=A0trying = 9pcon on the same fd (e.g. aux/9pcon /srv/foo) results in "inappropria= te use of fd".

You aren't allowed to read or= write an fd directly once it has been used for 9P traffic by mount (devmnt= ).
--047d7bf0c39aa94c6a0512aa2dc6-- From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Wed, 1 Apr 2015 11:37:07 -0700 Message-ID: From: Skip Tavakkolian To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=001a1134a6169e65f10512ae0093 Subject: Re: [9fans] puzzling 9P server / 9pcon interaction Topicbox-Message-UUID: 4c84cb0e-ead9-11e9-9d60-3106f5b1d025 --001a1134a6169e65f10512ae0093 Content-Type: text/plain; charset=UTF-8 Thanks Charles. i had looked at /sys/src/9/port/sysfile.c, but couldn't quite connect the dots. On Wed, Apr 1, 2015 at 7:03 AM, Charles Forsyth wrote: > > On 1 April 2015 at 00:23, Skip Tavakkolian > wrote: > >> trying 9pcon on the same fd (e.g. aux/9pcon /srv/foo) results in >> "inappropriate use of fd". > > > You aren't allowed to read or write an fd directly once it has been used > for 9P traffic by mount (devmnt). > --001a1134a6169e65f10512ae0093 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thanks Charles. =C2=A0i had looked at =C2=A0/sys/src/9/por= t/sysfile.c, but couldn't quite connect the dots.

On Wed, Apr 1, 2015 at 7:03 AM, C= harles Forsyth <charles.forsyth@gmail.com> wrote:

On 1 April 2015 at 00:23, = Skip Tavakkolian <skip.tavakkolian@gmail.com> wrote= :
=C2=A0trying 9pcon on the same fd (e.g.= aux/9pcon /srv/foo) results in "inappropriate use of fd".

You aren't allowed to read or write an fd direct= ly once it has been used for 9P traffic by mount (devmnt).

--001a1134a6169e65f10512ae0093--