BUSE
BUSE copied to clipboard
user operations errors should be properly converted to network byte order
Currently all errors are set like this:
reply.error = aop->write(chunk, len, from, userdata);
which requires to use ntohl
inside user buse_operations
.
I suggest to handle byte order on BUSE side, e.g.:
reply.error = htonl(aop->write(chunk, len, from, userdata));
I have a question: Doesn't the order of received byte sent after a write request need to be reversed as well ? If not, why?