]> git.proxmox.com Git - ceph.git/blame - ceph/qa/workunits/fs/snaps/snaptest-xattrwb.sh
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / qa / workunits / fs / snaps / snaptest-xattrwb.sh
CommitLineData
7c673cae
FG
1#!/bin/sh -x
2
3set -e
4
11fdf7f2 5ceph fs set cephfs allow_new_snaps true --yes-i-really-mean-it
7c673cae
FG
6
7echo "testing simple xattr wb"
8touch x
9setfattr -n user.foo x
10mkdir .snap/s1
11getfattr -n user.foo .snap/s1/x | grep user.foo
12rm x
13rmdir .snap/s1
14
15echo "testing wb with pre-wb server cow"
16mkdir a
17mkdir a/b
18mkdir a/b/c
19# b now has As but not Ax
20setfattr -n user.foo a/b
21mkdir a/.snap/s
22mkdir a/b/cc
23# b now has been cowed on the server, but we still have dirty xattr caps
24getfattr -n user.foo a/b # there they are...
25getfattr -n user.foo a/.snap/s/b | grep user.foo # should be there, too!
26
27# ok, clean up
28rmdir a/.snap/s
29rm -r a
30
31echo OK