From: Sam Lang Date: Mon, 11 Feb 2013 22:13:07 +0000 (-0600) Subject: qa/workunits: Add vxattr set pool test script X-Git-Tag: v0.57~11 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ed6c3ff50c0b05665aff45cd3bf47a8ed6135134;p=ceph.git qa/workunits: Add vxattr set pool test script Add a test script that tests for creating a pool and then setting the layout for a (pre-existing) file to that pool. Signed-off-by: Sam Lang Reviewed-by: Sage Weil --- diff --git a/qa/workunits/misc/mkpool_layout_vxattrs.sh b/qa/workunits/misc/mkpool_layout_vxattrs.sh new file mode 100755 index 000000000000..16b3cdfe5172 --- /dev/null +++ b/qa/workunits/misc/mkpool_layout_vxattrs.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +set -e + +touch foo.$$ +rados mkpool foo.$$ +poolid=$(ceph osd dump | grep "^pool" | awk '{print $2}' | tail -n 1) +ceph mds add_data_pool ${poolid} +setfattr -n ceph.file.layout.pool -v foo.$$ foo.$$ + +# cleanup +rados rmpool foo.$$ foo.$$ --yes-i-really-really-mean-it +rm foo.$$