summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Mick <dan.mick@inktank.com>2012-11-26 20:42:05 -0800
committerDan Mick <dan.mick@inktank.com>2012-11-26 22:02:18 -0800
commita96ede944f1a227960877dee715b1f96895b4228 (patch)
tree2367580ae445c0b669ef8be5d090e6fee8f2577d
parent39180430b9be14a94502b7e5bef30dd582ce3ad8 (diff)
downloadceph-a96ede944f1a227960877dee715b1f96895b4228.tar.gz
rbd workunit: Add tests for cross-pool rename
Signed-off-by: Dan Mick <dan.mick@inktank.com> Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
-rwxr-xr-xqa/workunits/rbd/copy.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/qa/workunits/rbd/copy.sh b/qa/workunits/rbd/copy.sh
index f38fe21a293..c4afb9c4e15 100755
--- a/qa/workunits/rbd/copy.sh
+++ b/qa/workunits/rbd/copy.sh
@@ -76,6 +76,16 @@ test_rename() {
rbd rename bar bar2
rbd rename bar2 foo2 2>&1 | grep exists
+ rados mkpool rbd2
+ rbd create -p rbd2 -s 1 foo
+ rbd rename rbd2/foo rbd2/bar
+ rbd -p rbd2 ls | grep bar
+ ! rbd rename rbd2/bar foo
+ ! rbd rename rbd2/bar --dest-pool rbd foo
+ rbd rename --pool rbd2 bar --dest-pool rbd2 foo
+ rbd -p rbd2 ls | grep foo
+ rados rmpool rbd2
+
remove_images
}