Open rutsky opened 8 years ago
Currently all errors are set like this:
reply.error = aop->write(chunk, len, from, userdata);
which requires to use ntohl inside user buse_operations.
ntohl
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?
Currently all errors are set like this:
which requires to use
ntohl
inside userbuse_operations
.I suggest to handle byte order on BUSE side, e.g.: