9fans archive / 1998 / 01 / 39 /    prev next

From: beto@ncu... beto@ncu...
Subject: [9fans] negotiation of 9P blocksize
Date: Wed, 28 Jan 98 15:25:54 PST

Hi, 

We are tired of people complaining, and then not wanting to use import/exportfs,
becuase of the 8K blocksize in the plan9 9P implementation (we already moved
exportfs into the kernel to bypass some copies), so
we've decided to add some fields to do block size negotion and I was wondering if this
has already been done to brazil/plan9 or styx. 

Our idea is to create two new opcodes Tnattach/Rnattach which an extra argument
blocksize which  represents what the client wants to do a what the server is
able to do. 

          Tnattach    tag[2]  fid[2]   uid[28]   aname[28]   ticket[72] auth[13] blocksize[4]
          Rnattach    tag[2] fid[2] qid[8] rauth[13]  rblocksize[4]

The idea is to try first Tnattach and if it fails then try
again with Tattach.

Any comments would be appreciate?

beto