]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
test/libcephfs: add test case for revoking caps
authorXiubo Li <xiubli@redhat.com>
Tue, 11 Oct 2022 04:53:17 +0000 (12:53 +0800)
committerXiubo Li <xiubli@redhat.com>
Wed, 23 Aug 2023 09:31:05 +0000 (17:31 +0800)
commit5dff810d1dc9f5522bac0d3baeeedeea324120f1
treefd61df63f8ee61d1aa3693632ec8407826ad3d02
parentea699f93ac5a4f0ac97783769cb6b0aeda18105f
test/libcephfs: add test case for revoking caps

When writing to a file and the max_size is approaching the client
will try to trigger to call check_caps() and flush the caps to MDS.
But just in case the MDS is revoking Fsxrw caps, since the client
keeps writing and holding the Fw caps it may only release part of
the caps but the Fw.

Fixes: https://tracker.ceph.com/issues/57244
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit 3c63980b9d38aa935cf920512e129968c15b5aa9)
src/test/libcephfs/multiclient.cc