]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test: add a link count test
authorJeff Layton <jlayton@redhat.com>
Mon, 1 Aug 2016 13:01:14 +0000 (09:01 -0400)
committerJeff Layton <jlayton@redhat.com>
Tue, 2 Aug 2016 11:20:08 +0000 (07:20 -0400)
commite8a898925afeb9f04883fa9a5fe081a3eeaedd3e
tree0e848d91fa30d81755c71d8c05cd62372134c8e3
parentd85ba5758a636e6f654bf241cc4550f1aeaf9466
test: add a link count test

...and use the lowlevel calls to emulate what ganesha would do. In
particular, it dumps its inode from the cache after an unlink. So
do a second lookup afterward and verify that the nlink field in the
struct stat is valid.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
src/test/libcephfs/test.cc