From: Sage Weil Date: Sun, 22 Aug 2010 22:18:21 +0000 (-0700) Subject: qa: test xattr snap wb X-Git-Tag: v0.22~245 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8950599aef62506ae5a80caa4bdd66ab0df01be9;p=ceph.git qa: test xattr snap wb --- diff --git a/qa/workunits/snaptest-xattrflush.sh b/qa/workunits/snaptest-xattrflush.sh new file mode 100755 index 000000000000..4545638c2120 --- /dev/null +++ b/qa/workunits/snaptest-xattrflush.sh @@ -0,0 +1,21 @@ +#!/bin/sh -x + +set -e + +mkdir a +mkdir a/b +mkdir a/b/c +# b now has As but not Ax +setfattr -n user.foo a/b +mkdir a/.snap/s +mkdir a/b/cc +# b now has been cowed on the server, but we still have dirty xattr caps +getfattr -n user.foo a/b # there they are... +r=`getfattr -n user.foo a/.snap/s/b` # should be there, too! +echo $r +[ -z "$r" ] && echo "didn't find user.foo xattr in snapped version" && false + +# ok, clean up +rmdir a/.snap/s +rm -r a +