From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Sat, 30 Jun 2007 11:15:45 -0700 From: "Latchesar Ionkov" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu> Subject: Re: [9fans] What do I need for a small 9P2000 server @ Linux ? In-Reply-To: <20070630174553.GT28917@kris.home> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070628184937.GG28917@kris.home> <20070628191000.GI28917@kris.home> <20070628193725.GA6293@nibiru.local> <20070628195046.GK28917@kris.home> <20070630005123.GA22285@nibiru.local> <20070630005506.GO28917@kris.home> <20070630113954.GA9515@nibiru.local> <20070630161606.GP28917@kris.home> <20070630173912.GC1435@nibiru.local> <20070630174553.GT28917@kris.home> Topicbox-Message-UUID: 8d0f3bd4-ead2-11e9-9d60-3106f5b1d025 On 6/30/07, Kris Maglione wrote: > On Sat, Jun 30, 2007 at 07:39:12PM +0200, Enrico Weigelt wrote: > >I'm not sure if spfs sends this zero or libixp doesn't decode it. > >With npfs I've got the same problem. > > spfs sends it. styxmon has nothing to do with libixp. > > >But it's interesting that the Linux 9p driver doesn't have any > >problem w/ spfs or npfs. No idea if it does an similar hack as mine. > > lib9pclient ignores the iounit entirely. npfs does this, which > is nowhere in the spec, and thus confuses me: > > fid->iounit = rc->iounit; > if (!fid->iounit || fid->iounit>fid->fsys->msize-IOHDRSZ) > fid->iounit = fid->fsys->msize-IOHDRSZ; If the client gets iounit equal to zero, it has to pick a greater-than-zero number. msize - IOHDRSZ is the maximum number of bytes that can be read/written with a single message. Lucho