diff options
author | Sam Lang <sam.lang@inktank.com> | 2013-02-11 16:13:07 -0600 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-02-12 14:44:24 -0800 |
commit | ed6c3ff50c0b05665aff45cd3bf47a8ed6135134 (patch) | |
tree | 566fcc53d823fb7f4257dae277bc8bc1b37f4c66 | |
parent | 5517000fbbbb420002a833de3adba74291db436b (diff) | |
download | ceph-ed6c3ff50c0b05665aff45cd3bf47a8ed6135134.tar.gz |
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 <sam.lang@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
-rwxr-xr-x | qa/workunits/misc/mkpool_layout_vxattrs.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/qa/workunits/misc/mkpool_layout_vxattrs.sh b/qa/workunits/misc/mkpool_layout_vxattrs.sh new file mode 100755 index 00000000000..16b3cdfe517 --- /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.$$ |