Skip to content
Commit 453ed90d authored by Latchesar Ionkov's avatar Latchesar Ionkov Committed by Eric Van Hensbergen
Browse files

net/9p: set correct stat size when sending Twstat messages



The 9P2000 Twstat message requires the size of the stat structure to be
specified. Currently the 9p code writes zero instead of the actual size.
This behavior confuses some of the file servers that check if the size is
correct.

This patch adds a new function that calculcates the stat size and puts the
value in the appropriate place in the 9P message.

Signed-off-by: default avatarLatchesar Ionkov <lucho@ionkov.net>
Reviewed-by: default avatarEric Van Hensbergen <ericvh@gmail.com>
parent b4348f32
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment