Skip to content

user operations errors should be properly converted to network byte order #5

@rutsky

Description

@rutsky

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));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions