]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test/libcephfs: add test case for revoking caps 47752/head
authorXiubo Li <xiubli@redhat.com>
Tue, 11 Oct 2022 04:53:17 +0000 (12:53 +0800)
committerXiubo Li <xiubli@redhat.com>
Wed, 8 Mar 2023 13:46:05 +0000 (21:46 +0800)
commit064e6d2cee48130ced0b43bf88ff9cc7b19e12c1
tree7b75457f94796209527ba6997ce06158c32a1c1e
parent9fbde6da076f2d7c8bfde50c3f9e581e967c0df0
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>
src/test/libcephfs/multiclient.cc