]> git.apps.os.sepia.ceph.com Git - ceph.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:28:30 +0000 (17:28 +0800)
commit08c8463f244157392383d2f81308053bf6aec182
tree885b1eb1512dd0c3e79e77a7b4dcb423e2329927
parent9507fad8d16278984c6e987c0fd0e1d456d61baf
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