diff options
author | Sage Weil <sage@inktank.com> | 2013-03-28 21:29:55 -0700 |
---|---|---|
committer | Josh Durgin <josh.durgin@inktank.com> | 2013-03-31 23:32:41 -0700 |
commit | 9946c69cd1b83c90129c88a6866e95482dffbc8a (patch) | |
tree | a165bb02173e14c348d53f511a08fb30b26babc9 /qa | |
parent | 5b0c68b928f1d0f2815bc137d4cb62a504d5a5a9 (diff) | |
download | ceph-9946c69cd1b83c90129c88a6866e95482dffbc8a.tar.gz |
rbd: fail import-diff if end snap already exists
This will prevent a user from inadvertantly reapplying a diff twice.
Signed-off-by: Sage Weil <sage@inktank.com>
Diffstat (limited to 'qa')
-rwxr-xr-x | qa/workunits/rbd/diff.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qa/workunits/rbd/diff.sh b/qa/workunits/rbd/diff.sh index 1e79d7cf9d3..8218ae28dab 100755 --- a/qa/workunits/rbd/diff.sh +++ b/qa/workunits/rbd/diff.sh @@ -27,6 +27,7 @@ rm foo.diff rbd export-diff foo@three --from-snap two foo.diff rbd import-diff foo.diff foo.copy +rbd import-diff foo.diff foo.copy && exit 1 || true # this should fail with EEXIST on the end snap rbd snap ls foo.copy | grep three rbd export foo foo.out |