diff options
author | Xiao Yang | 2020-01-02 04:53:12 +0100 |
---|---|---|
committer | Dr. David Alan Gilbert | 2020-01-23 17:41:37 +0100 |
commit | a931b6861e59c78d861017e9c6a9c161ff49a163 (patch) | |
tree | aa03ce6ce8a485d5a248f0bbf8e44955e5915cdf /tools/virtiofsd/fuse_virtio.c | |
parent | virtiofsd: Convert lo_destroy to take the lo->mutex lock itself (diff) | |
download | qemu-a931b6861e59c78d861017e9c6a9c161ff49a163.tar.gz qemu-a931b6861e59c78d861017e9c6a9c161ff49a163.tar.xz qemu-a931b6861e59c78d861017e9c6a9c161ff49a163.zip |
virtiofsd/passthrough_ll: Pass errno to fuse_reply_err()
lo_copy_file_range() passes -errno to fuse_reply_err() and then fuse_reply_err()
changes it to errno again, so that subsequent fuse_send_reply_iov_nofree() catches
the wrong errno.(i.e. reports "fuse: bad error value: ...").
Make fuse_send_reply_iov_nofree() accept the correct -errno by passing errno
directly in lo_copy_file_range().
Signed-off-by: Xiao Yang <yangx.jy@cn.fujitsu.com>
Reviewed-by: Eryu Guan <eguan@linux.alibaba.com>
dgilbert: Sent upstream and now Merged as aa1185e153f774f1df65
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'tools/virtiofsd/fuse_virtio.c')
0 files changed, 0 insertions, 0 deletions