]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
client: fix fuse client can't read or write data due its caps is invalid 24286/head
authorYunfeiGuan <yunfeiguan@xtaotech.com>
Wed, 26 Sep 2018 09:01:38 +0000 (17:01 +0800)
committerYunfeiGuan <yunfeiguan@xtaotech.com>
Wed, 26 Sep 2018 09:01:38 +0000 (17:01 +0800)
commit1d742aa51be07cebf1b0d19b6640684b263e6bfc
tree9d22316af9a4fcc2da06029b0f8407a46eebf014
parent84fa9d4ae0297770ba201eba948ae5b41979f710
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>
src/client/Client.cc