]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test: add a new program for testing ino_release_cb 35150/head
authorJeff Layton <jlayton@redhat.com>
Tue, 28 Apr 2020 18:00:13 +0000 (14:00 -0400)
committerVicente Cheng <freeze.bilsted@gmail.com>
Wed, 20 May 2020 08:47:01 +0000 (08:47 +0000)
commit3fa2a2e947aca471823dd79a49233e9cd5fd353a
tree0624afc97cac92848f2ac813e94e0a4239c105ed
parent942ab1f87bc0249a9242d3c4dc39a64b672b0df8
test: add a new program for testing ino_release_cb

Create a bunch of files and get their inode numbers. Remount, look them
all up by inode number and hold references. Stop looking up inodes as
soon as we get a callback from libcephfs. If we got the callback, return
success. Fail otherwise.

Since this has the same cluster setup as the other client_trim_caps
testcase, we can piggyback onto that task.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
(cherry picked from commit c0db8a01f0a04cf9e10f3715bfb802d619bc32b9)
qa/suites/fs/bugs/client_trim_caps/tasks/trim-i22073.yaml
src/test/fs/CMakeLists.txt
src/test/fs/test_ino_release_cb.cc [new file with mode: 0644]