ceph: add a new test for cross quota realms renames
[xfstests-dev.git] / common / ceph
index f80209f98b232fcc60e0a6e8a5930b979c075404..ca756dda8dd3f8184140e40509d4f7d1f7a388a4 100644 (file)
@@ -21,3 +21,10 @@ _ceph_create_file_layout()
                -v "stripe_unit=$objsz stripe_count=1 object_size=$objsz" \
                $fname
 }
+
+# this test requires to access file capabilities through vxattr 'ceph.caps'.
+_require_ceph_vxattr_caps()
+{
+       $GETFATTR_PROG -n "ceph.caps" $TEST_DIR >/dev/null 2>&1 \
+         || _notrun "ceph.caps vxattr not supported"
+}