diff options
author | Sage Weil <sage@inktank.com> | 2013-10-03 21:15:36 -0700 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-10-03 21:15:36 -0700 |
commit | bae4c9573ac1d713af5caf74da4df303c43fd2d2 (patch) | |
tree | 7af4fc0bec6857a7fe0d9a07b70c6b8e271f830f /qa/workunits/misc/mkpool_layout_vxattrs.sh | |
parent | fea1e0e56cbd3d82a173b50532ff51b8bcee9359 (diff) | |
download | ceph-wip-pool.tar.gz |
mon: make 'mon {add,remove}_data_pool ...' take pool name or idwip-pool
Take either a pool name or an id. Fix up the tests accordingly.
Signed-off-by: Sage Weil <sage@inktank.com>
Diffstat (limited to 'qa/workunits/misc/mkpool_layout_vxattrs.sh')
-rwxr-xr-x | qa/workunits/misc/mkpool_layout_vxattrs.sh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/qa/workunits/misc/mkpool_layout_vxattrs.sh b/qa/workunits/misc/mkpool_layout_vxattrs.sh index 16b3cdfe517..91d31664898 100755 --- a/qa/workunits/misc/mkpool_layout_vxattrs.sh +++ b/qa/workunits/misc/mkpool_layout_vxattrs.sh @@ -4,10 +4,12 @@ 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} +ceph mds add_data_pool foo.$$ setfattr -n ceph.file.layout.pool -v foo.$$ foo.$$ # cleanup -rados rmpool foo.$$ foo.$$ --yes-i-really-really-mean-it rm foo.$$ +ceph mds remove_data_pool foo.$$ +rados rmpool foo.$$ foo.$$ --yes-i-really-really-mean-it + +echo OK |