9ae3a8
From 98ce0a262f9b19a452e202e01ca84584079d22f2 Mon Sep 17 00:00:00 2001
9ae3a8
From: Jeffrey Cody <jcody@redhat.com>
9ae3a8
Date: Wed, 20 Nov 2013 19:44:06 +0100
9ae3a8
Subject: [PATCH 23/25] block: vhdx - update _make_test_img() to filter out vhdx options
9ae3a8
9ae3a8
RH-Author: Jeffrey Cody <jcody@redhat.com>
9ae3a8
Message-id: <8632a15d525b341bea089780916ffab61f44a34f.1384975172.git.jcody@redhat.com>
9ae3a8
Patchwork-id: 55816
9ae3a8
O-Subject: [RHEL7 qemu-kvm PATCH 23/26] block: vhdx - update _make_test_img() to filter out vhdx options
9ae3a8
Bugzilla: 879234
9ae3a8
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
9ae3a8
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
9ae3a8
RH-Acked-by: Fam Zheng <famz@redhat.com>
9ae3a8
9ae3a8
The non-global option output is suppresed in _make_test_img() for
9ae3a8
output verification in the 0?? tests.  This adds suppression for
9ae3a8
the vhdx-unique options as well.  This allows check -vhdx to run
9ae3a8
successfully.
9ae3a8
9ae3a8
Signed-off-by: Jeff Cody <jcody@redhat.com>
9ae3a8
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
9ae3a8
(cherry picked from commit 228b234dd73383408743d749d29a6c37e9d99981)
9ae3a8
---
9ae3a8
 tests/qemu-iotests/common.rc | 5 ++++-
9ae3a8
 1 file changed, 4 insertions(+), 1 deletion(-)
9ae3a8
9ae3a8
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
9ae3a8
---
9ae3a8
 tests/qemu-iotests/common.rc |    5 ++++-
9ae3a8
 1 files changed, 4 insertions(+), 1 deletions(-)
9ae3a8
9ae3a8
diff --git a/tests/qemu-iotests/common.rc b/tests/qemu-iotests/common.rc
9ae3a8
index d24de2c..7f62457 100644
9ae3a8
--- a/tests/qemu-iotests/common.rc
9ae3a8
+++ b/tests/qemu-iotests/common.rc
9ae3a8
@@ -157,7 +157,10 @@ _make_test_img()
9ae3a8
             -e "s# zeroed_grain=\\(on\\|off\\)##g" \
9ae3a8
             -e "s# subformat='[^']*'##g" \
9ae3a8
             -e "s# adapter_type='[^']*'##g" \
9ae3a8
-            -e "s# lazy_refcounts=\\(on\\|off\\)##g"
9ae3a8
+            -e "s# lazy_refcounts=\\(on\\|off\\)##g" \
9ae3a8
+            -e "s# block_size=[0-9]\\+##g" \
9ae3a8
+            -e "s# block_state_zero=\\(on\\|off\\)##g" \
9ae3a8
+            -e "s# log_size=[0-9]\\+##g"
9ae3a8
 
9ae3a8
     # Start an NBD server on the image file, which is what we'll be talking to
9ae3a8
     if [ $IMGPROTO = "nbd" ]; then
9ae3a8
-- 
9ae3a8
1.7.1
9ae3a8