Commits


channel: truncate twrite messages based on msize While there are a few problems around handling of msize, the easiest to address and, arguably, the most problematic is that of Twrite. We now truncate Twrite.Data to the correct length if it will overflow the msize limit negotiated on the session. ErrShortWrite is returned by the `Session.Write` method if written data is truncated. In addition, we now reject incoming messages from `ReadFcall` that overflow the msize. Such messages are probably terminal in practice, but can be detected with the `Overflow` function. Tread is also handled accordingly, such that the Count field will be rewritten such that the response doesn't overflow the msize. Signed-off-by: Stephen J Day <stephen.day@docker.com>


Merge pull request #33 from stevvooe/new-context p9p: use new context package throughout


p9p: use new context package throughout Signed-off-by: Stephen J Day <stephen.day@docker.com>


Merge pull request #8 from stevvooe/err-instead-nil errors: return errors rather than nil


errors: return errors rather than nil Signed-off-by: Stephen J Day <stephen.day@docker.com>


Merge branch 'pinata-filtered'


Merge branch 'pinata-pkg-filtered' into pinata-filtered Signed-off-by: Stephen J Day <stephen.day@docker.com>


implementing p9p fs with v1/pkg/p9p (wip)


implementing p9p fs with v1/pkg/p9p (wip)


fs/p9p/new: various client and server cleanup Signed-off-by: Stephen J Day <stephen.day@docker.com>


v1/pkg/p9p


fs/p9p/new: add version to context Signed-off-by: Stephen J Day <stephen.day@docker.com>


fs/p9p/new: refactor to use interface for channel Signed-off-by: Stephen J Day <stephen.day@docker.com>


fs/p9p/new: stat implementation and correct dir/Rstat encoding Signed-off-by: Stephen J Day <stephen.day@docker.com>


fs/p9p/new: fully working ls with ufs The repl and client session work fully with rminnich/go9p/ufs. The key to this was proper support for directory serialization, which is subtle. The size field for Rread was the incorrect size. Several robustness improvements are also included. Issues with the timeouts and missing error returns have been addressed. Signed-off-by: Stephen J Day <stephen.day@docker.com>