On Mon, Nov 15, 2010 at 2:00 PM, Dan Adkins <dadk...@gmail.com> wrote: > That brings up a question of interest to me. How do you effectively > read ahead with the 9p protocol? Even if you issued many read > requests in parallel, the server is allowed to return less data than > was asked for. You'll end up with holes in your buffer that require > at least another roundtrip to fill.
The traditional "store data" file servers that Unix users would recognize tend to follow the Unix semantics that a read will return as much data as it can. If you're talking to one of them you issue reads for 8k each or whatever and then do the roundtrip if necessary, but it rarely is. Russ