]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test: move snap delete operation to non-root directory 38703/head
authorVenky Shankar <vshankar@redhat.com>
Wed, 23 Dec 2020 05:14:31 +0000 (00:14 -0500)
committerVenky Shankar <vshankar@redhat.com>
Wed, 23 Dec 2020 13:06:08 +0000 (08:06 -0500)
commitf6ddc690980aaafb4f89c89614f0b23de2e0e858
tree27408005e35307ad22d1608f4916d8ff19609f5d
parentd27a9fe63343e54649a1e632c5062e308ec11e27
test: move snap delete operation to non-root directory

In teuthology, root directory in a Ceph Filesystem is owned
by root (0:0) and has sticky-bit enabled. Snapshots created
on the directory carry its UID/GID and mode.

This causes tests that remove snapshots on root directory to
fail. Sticky bit on a directory gives permission to delete a
file in that directory only if you own the file.

Signed-off-by: Venky Shankar <vshankar@redhat.com>
src/test/libcephfs/test.cc