]> 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 25479/head
authorYunfeiGuan <yunfeiguan@xtaotech.com>
Wed, 26 Sep 2018 09:01:38 +0000 (17:01 +0800)
committerYan, Zheng <zyan@redhat.com>
Tue, 8 Jan 2019 03:42:53 +0000 (11:42 +0800)
commit77bc12e21e893307d45a1786c2f42ab33fe6c952
tree26741febb9ae131986838f08b59beed0ba666c2c
parentc7f324b0ce693926ebb09ebc4f00e71c965e8e4b
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>
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
src/client/Client.cc