From 841903665931f54942037e838d0e2b05e22e3fbd Mon Sep 17 00:00:00 2001 From: Venky Shankar Date: Thu, 1 Dec 2016 10:30:25 +0530 Subject: [PATCH] test / librbd: Write ones instead of zeroes to test images Signed-off-by: Douglas Fuller Signed-off-by: Venky Shankar --- .../cli-integration/rbd/formatted-output.t | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/test/cli-integration/rbd/formatted-output.t b/src/test/cli-integration/rbd/formatted-output.t index d558371bbbf3c..c5ecdead55705 100644 --- a/src/test/cli-integration/rbd/formatted-output.t +++ b/src/test/cli-integration/rbd/formatted-output.t @@ -852,13 +852,13 @@ whenever it is run. grep -v to ignore it, but still work on other distros. 536870912 - $ rbd disk-usage --pool rbd_other + $ rbd disk-usage --pool rbd_other 2>/dev/null NAME PROVISIONED USED - child@snap 512M 512M - child 512M 512M - deep-flatten-child@snap 512M 512M - deep-flatten-child 512M 512M - 1024M 2048M + child@snap 512M 0 + child 512M 4096k + deep-flatten-child@snap 512M 0 + deep-flatten-child 512M 0 + 1024M 4096k $ rbd disk-usage --pool rbd_other --format json | python -mjson.tool | sed 's/,$/, /' { "images": [ @@ -866,27 +866,27 @@ whenever it is run. grep -v to ignore it, but still work on other distros. "name": "child", "provisioned_size": 536870912, "snapshot": "snap", - "used_size": 536870912 + "used_size": 0 }, { "name": "child", "provisioned_size": 536870912, - "used_size": 536870912 + "used_size": 4194304 }, { "name": "deep-flatten-child", "provisioned_size": 536870912, "snapshot": "snap", - "used_size": 536870912 + "used_size": 0 }, { "name": "deep-flatten-child", "provisioned_size": 536870912, - "used_size": 536870912 + "used_size": 0 } ], "total_provisioned_size": 1073741824, - "total_used_size": 2147483648 + "total_used_size": 4194304 } $ rbd disk-usage --pool rbd_other --format xml | xml_pp 2>&1 | grep -v '^new version at /usr/bin/xml_pp' @@ -895,27 +895,27 @@ whenever it is run. grep -v to ignore it, but still work on other distros. child snap 536870912 - 536870912 + 0 child 536870912 - 536870912 + 4194304 deep-flatten-child snap 536870912 - 536870912 + 0 deep-flatten-child 536870912 - 536870912 + 0 1073741824 - 2147483648 + 4194304 # cleanup -- 2.39.5