]> www.infradead.org Git - users/jedix/linux-maple.git/commit
fuse: Do not mask return value from fuse_direct_io for partially valid data
authorAshish Samant <ashish.samant@oracle.com>
Tue, 15 Mar 2016 02:23:37 +0000 (19:23 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Mon, 21 Mar 2016 16:10:13 +0000 (09:10 -0700)
commita63f124d5524e9ddc5153ad7837734eb4c2113f0
treeea94de65b6573e65bb87041c18976462d408a6c7
parent7f53b93c55a34e8126872a1e51f9434d40ed33c0
fuse: Do not mask return value from fuse_direct_io for partially valid data

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.

Orabug: 22732213

Reported-by: Alexey Kodanev <alexey.kodanev@oracle.com>
Signed-off-by: Ashish Samant <ashish.samant@oracle.com>
Acked-by: Miklos Szeredi <miklos@szeredi.hu>
fs/fuse/file.c