]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits: Add vxattr set pool test script
authorSam Lang <sam.lang@inktank.com>
Mon, 11 Feb 2013 22:13:07 +0000 (16:13 -0600)
committerSage Weil <sage@inktank.com>
Tue, 12 Feb 2013 22:44:24 +0000 (14:44 -0800)
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>
qa/workunits/misc/mkpool_layout_vxattrs.sh [new file with mode: 0755]

diff --git a/qa/workunits/misc/mkpool_layout_vxattrs.sh b/qa/workunits/misc/mkpool_layout_vxattrs.sh
new file mode 100755 (executable)
index 0000000..16b3cdf
--- /dev/null
@@ -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.$$