aboutsummaryrefslogtreecommitdiffstats
path: root/include/fuse.h
diff options
context:
space:
mode:
authorDr. David Alan Gilbert <dgilbert@redhat.com>2020-01-06 20:32:51 +0000
committerNikolaus Rath <Nikolaus@rath.org>2020-01-06 20:32:51 +0000
commitaa1185e153f774f1df65565f6a6fa2fb1c8cf3f3 (patch)
tree9af2b0daa0102d2e495de089386c015033a9644a /include/fuse.h
parent6f81ca264a60947383768461ac7a827eef23bd28 (diff)
downloadlibfuse-aa1185e153f774f1df65565f6a6fa2fb1c8cf3f3.tar.gz
passthrough_ll: pass correct errno to fuse_reply_err()
fuse_reply_err() expects the error code, not its negative. Upstreamed from https://www.redhat.com/archives/virtio-fs/2020-January/msg00000.html. Original commit message: 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> Co-authored-by: Xiao Yang <ice_yangxiao@163.com>
Diffstat (limited to 'include/fuse.h')
0 files changed, 0 insertions, 0 deletions