Skip to contentSkip to conversation

qemu-iotests: Filter out vmdk creation options

PATCH Applied Fam Zheng 3 participants 4 messages May 3, 2013

lore
Share & tools
lore

Fam Zheng

author
#0 lore raw

PATCH 1/1 qemu-iotests: Filter out vmdk creation options

Cover new image creation options for vmdk, so we can use '-o zeroed_grain=XXX' and '-o subformat=XXX' to run the tests successfully.

---
 tests/qemu-iotests/common.rc | 2 ++
 1 file changed, 2 insertions(+)
tests/qemu-iotests/common.rc +2 -0
index a536bf7..442cf51 100644
@@ -127,6 +127,8 @@ _make_test_img()
             -e "s# compat='[^']*'##g" \
             -e "s# compat6=\\(on\\|off\\)##g" \
             -e "s# static=\\(on\\|off\\)##g" \
+            -e "s# zeroed_grain=\\(on\\|off\\)##g" \
+            -e "s# subformat='[^']*'##g" \
             -e "s# lazy_refcounts=\\(on\\|off\\)##g"
 
     # Start an NBD server on the image file, which is what we'll be talking to
Signature · 1 line
1.8.1.4
Reviewed-by on v1 1/1
#1 lore raw

Am 03.05.2013 um 03:31 hat Fam Zheng geschrieben:

Quoted 12 lines

Cover new image creation options for vmdk, so we can use '-o zeroed_grain=XXX' and '-o subformat=XXX' to run the tests successfully.

---
 tests/qemu-iotests/common.rc | 2 ++
 1 file changed, 2 insertions(+)
tests/qemu-iotests/common.rc +0 -0
index a536bf7..442cf51 100644

tests/qemu-iotests/common.rc _make_test_img() · line 134

Quoted 8 lines
tests/qemu-iotests/common.rc +2 -0
@@ -127,6 +127,8 @@ _make_test_img()
             -e "s# compat='[^']*'##g" \
             -e "s# compat6=\\(on\\|off\\)##g" \
             -e "s# static=\\(on\\|off\\)##g" \
+            -e "s# zeroed_grain=\\(on\\|off\\)##g" \
+            -e "s# subformat='[^']*'##g" \
             -e "s# lazy_refcounts=\\(on\\|off\\)##g"
 
     # Start an NBD server on the image file, which is what we'll be talking to

Maybe add adapter_type as well? It's a string option, so it's not displayed if it's not set, but if we want to make it testable (with an explicit ./check -o option or in a new test case that adds it), we need to filter it out.

But the patch obviously helps even without adapter_type, so anyway:

author
#2 lore raw
Quoted 27 lines · Kevin Wolf

Am 03.05.2013 um 03:31 hat Fam Zheng geschrieben:

Quoted 12 lines

Cover new image creation options for vmdk, so we can use '-o zeroed_grain=XXX' and '-o subformat=XXX' to run the tests successfully.

---
 tests/qemu-iotests/common.rc | 2 ++
 1 file changed, 2 insertions(+)
tests/qemu-iotests/common.rc +0 -0
index a536bf7..442cf51 100644

tests/qemu-iotests/common.rc _make_test_img() · line 134

Quoted 8 lines
tests/qemu-iotests/common.rc +2 -0
@@ -127,6 +127,8 @@ _make_test_img()
             -e "s# compat='[^']*'##g" \
             -e "s# compat6=\\(on\\|off\\)##g" \
             -e "s# static=\\(on\\|off\\)##g" \
+            -e "s# zeroed_grain=\\(on\\|off\\)##g" \
+            -e "s# subformat='[^']*'##g" \
             -e "s# lazy_refcounts=\\(on\\|off\\)##g"
 
     # Start an NBD server on the image file, which is what we'll be talking to

Maybe add adapter_type as well? It's a string option, so it's not displayed if it's not set, but if we want to make it testable (with an explicit ./check -o option or in a new test case that adds it), we need to filter it out.

Quoted 3 lines

But the patch obviously helps even without adapter_type, so anyway:

Sure, I'll send another patch for that option.

Thanks.

Signature · 1 line
Fam