Skip to content
Commit 742f9927 authored by Ashish Samant's avatar Ashish Samant Committed by Miklos Szeredi
Browse files

fuse: return patrial success from fuse_direct_io()



If a user calls writev/readv in direct io mode with partially valid data
in the iovec array such that any vector other than the first one in the
array contains invalid data, we currently return the error for the invalid
iovec.

Instead, we should return the number of bytes already written/read and not
the error as we do in the non direct_io case.

Reported-by: default avatarAlexey Kodanev <alexey.kodanev@oracle.com>
Signed-off-by: default avatarAshish Samant <ashish.samant@oracle.com>
Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
parent 744742d6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment