]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
client: fix sanity check of preadv/pwritev 9536/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Tue, 7 Jun 2016 06:20:32 +0000 (14:20 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Tue, 7 Jun 2016 06:26:45 +0000 (14:26 +0800)
commit45efd19722dc99ca55a0f36473c73e0df4dd14e0
tree31f714f692263f92fb74de4d3b0b3ec4a55a2eec
parent8d7b8e1f93c3f53606e1bcaac8622d46829252f7
client: fix sanity check of preadv/pwritev

The preadv/pwritev call is only supposed to return a postive
number indicating how many bytes we succeed in reading from
or writing into disk, which is obviously not what we want
under the following cases.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/client/Client.cc