]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test: add a new program for testing ino_release_cb
authorJeff Layton <jlayton@redhat.com>
Tue, 28 Apr 2020 18:00:13 +0000 (14:00 -0400)
committerNathan Cutler <ncutler@suse.com>
Thu, 4 Jun 2020 13:03:50 +0000 (15:03 +0200)
commit4c9a2e37b618e80e4a585e6129c5611c5b0b1fbb
treec4fc3a54cd6f9d59964335c19163d7e325f704e5
parent11c2afab10977d498cd87f6eadb73622e5193759
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]