Age | Commit message (Collapse) | Author |
|
Make `cargo clippy --all-features --all-targets` pass.
Signed-off-by: Keiichi Watanabe <keiichiw@chromium.org>
|
|
Add more negative unit test cases to improve code coverage.
Also add two helper functions to simplify code.
Signed-off-by: Liu Jiang <gerry@linux.alibaba.com>
|
|
Refine the SlaveFsCacheReq struct by:
1) honoring the negotiation result of VHOST_USER_PROTOCOL_F_REPLY_ACK,
2) better documentation,
3) adding unit test cases.
Signed-off-by: Liu Jiang <gerry@linux.alibaba.com>
|
|
HandlerResult is mapped to either 0 or 1 in send_ack_message() and the
actual result (e.g. fs_slave_io()'s I/O count or error number) is lost
when sending result back to slave. And slave doesn't know how much data
has been read/written nor the real error.
Fix it by perserving the real result and send it back to slave in
send_ack_message().
Fixes: #15
Signed-off-by: Eryu Guan <eguan@linux.alibaba.com>
|
|
This introduces SlaveFsCacheReq which implements
VhostUserMasterReqHandler to handle map/unmap requests.
Signed-off-by: Liu Bo <bo.liu@linux.alibaba.com>
|