]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: fix fuse client can't read or write data due its caps is invalid 25091/head
authorYunfeiGuan <yunfeiguan@xtaotech.com>
Wed, 26 Sep 2018 09:01:38 +0000 (17:01 +0800)
committerJonathan Brielmaier <jbrielmaier@suse.de>
Wed, 14 Nov 2018 12:53:09 +0000 (13:53 +0100)
commit56426aa1896da624f75e807a51f635a37033602c
tree17884034946bef43c7ecebe3837a33dc6afdbd02
parentbaa4f5d60fcd5042caa7c616d1cd6cf5048fd693
client: fix fuse client can't read or write data due its caps is invalid

We can't do read or write if we don't have Fr or Fw.Similarly, if the
caps is invalid, we can't read or wirte either.

What's worse,the mds don't konw our cap gen is invalid and think client
inode's caps is right.Thus will lead client application hung all the time.

Fixes: http://tracker.ceph.com/issues/36189
Signed-off-by: Guan yunfei <yunfei.guan@xtaotech.com>
(cherry picked from commit 1d742aa51be07cebf1b0d19b6640684b263e6bfc)
Signed-off-by: Jonathan Brielmaier <jbrielmaier@suse.de>
src/client/Client.cc