summaryrefslogtreecommitdiffstats
path: root/src/test/cli-integration
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-23 16:45:13 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-23 16:45:13 +0000
commit389020e14594e4894e28d1eb9103c210b142509e (patch)
tree2ba734cdd7a243f46dda7c3d0cc88c2293d9699f /src/test/cli-integration
parentAdding upstream version 18.2.2. (diff)
downloadceph-389020e14594e4894e28d1eb9103c210b142509e.tar.xz
ceph-389020e14594e4894e28d1eb9103c210b142509e.zip
Adding upstream version 18.2.3.upstream/18.2.3
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--src/test/cli-integration/rbd/snap-diff.t4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/cli-integration/rbd/snap-diff.t b/src/test/cli-integration/rbd/snap-diff.t
index 1ca2fb04d..fa564891a 100644
--- a/src/test/cli-integration/rbd/snap-diff.t
+++ b/src/test/cli-integration/rbd/snap-diff.t
@@ -39,10 +39,14 @@
$ rbd diff --from-snap=snap1 xrbddiff1/xtestdiff1 --format json
[]
$ rbd snap rollback xrbddiff1/xtestdiff1@snap1 --no-progress
+ $ rbd diff --from-snap=allzeroes xrbddiff1/xtestdiff1 --format json
+ [{"offset":0,"length":1048576,"exists":"true"}]
$ rbd diff --from-snap=snap1 xrbddiff1/xtestdiff1 --format json
[]
$ rbd snap rollback xrbddiff1/xtestdiff1@allzeroes --no-progress
$ rbd diff --from-snap=allzeroes xrbddiff1/xtestdiff1 --format json
+ []
+ $ rbd diff --from-snap=snap1 xrbddiff1/xtestdiff1 --format json
[{"offset":0,"length":1048576,"exists":"false"}]
$ ceph osd pool rm xrbddiff1 xrbddiff1 --yes-i-really-really-mean-it
pool 'xrbddiff1' removed