On Fri, Nov 12, 2010 at 2:55 PM, ron minnich <[email protected]> wrote: > I never much liked .u so I'm happy to see it go away :-) > But I wonder what the failure of .u says about the version mechanism.
I think it says you shouldn't use it to change the encoding of existing messages. Add messages all you want (and use the negotiation to make sure you agree on what they are) but don't change the messages that are already there, and especially don't change format of fundamental data structures like Dir. > In the 9p stuff I did in 1998 for linux I used the SunRPC way of > handling protocol variants: client asked to do an op (e.g. Treadlink) > and got back an ENOSUPPORT if server couldn't do that. Sun RPC can get away with that because there are 64+ bits describing a particular RPC request type. 9P has 8. You shouldn't just send an 8-bit value and hope the other side knows which one you mean. You should use the protocol negotiation. Russ
