From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sam To: <9fans@cse.psu.edu> Subject: Re: [9fans] Rstat needs three size fields? In-Reply-To: <1f599b06ef2b405c54d9dce309728e39@plan9.bell-labs.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Date: Fri, 4 Jul 2003 11:04:50 -0400 Topicbox-Message-UUID: e90c3f9c-eacb-11e9-9e20-41e7f4b1d025 > The variable length fields in 9P2000 always have > a two-byte length in front of them. So does the > stat buffer. Oh, I see. That does make sense. Thank you. I failed to make the connection that the stat buffer itself is considered a variable length field (including the size). One last niggle -- intro(5), paragraph 4, sentence 3 could stand to have "of larger or" removed since the 13 byte w?qid doesn't have a two-byte size. Just curious, but why isn't data in Rread and Twrite a variable length field with a two-byte count? Count was two bytes in 2nd Ed 9P; what was the motivating push for four bytes? I suppose it does allow you to reserve count values ~0 through ~0-6 for special meaning, though this seems unexploited. Cheers, Sam