Skip to contentSkip to conversation

iotests: 095: Clean up QEMU before showing image info

PATCH In review Fam Zheng 2 participants 5 messages Jun 3, 2016 – Jun 6, 2016

lore
Share & tools
lore

Fam Zheng

author
#0 lore raw

PATCH 1/1 iotests: 095: Clean up QEMU before showing image info

Somehow in my locking series, I missed this case where concurrent access to an image is performed, perhaps we can remove this case independently.

---
 tests/qemu-iotests/095 | 2 ++
 1 file changed, 2 insertions(+)
tests/qemu-iotests/095 +2 -0
index dad04b9..030adb2 100755
@@ -74,6 +74,8 @@ _send_qemu_cmd $h "{ 'execute': 'block-commit',
                                  'arguments': { 'device': 'test',
                                  'top': '"${TEST_IMG}.snp1"' } }" "BLOCK_JOB_COMPLETED"
 
+_cleanup_qemu
+
 echo
 echo "=== Base image info after commit and resize ==="
 TEST_IMG="${TEST_IMG}.base" _img_info | _filter_img_info
Signature · 1 line
2.8.2
#1 lore raw
Quoted 2 lines · Fam Zheng

Somehow in my locking series, I missed this case where concurrent access to an image is performed, perhaps we can remove this case independently.

The patch itself is good, but this commit message will not make much sense in the git log. I'd be fine with removing it completely because the title itself should be sufficient. (Which is something I can do in case you agree.)

Max

Quoted 20 lines
---
 tests/qemu-iotests/095 | 2 ++
 1 file changed, 2 insertions(+)
tests/qemu-iotests/095 +2 -0
index dad04b9..030adb2 100755
@@ -74,6 +74,8 @@ _send_qemu_cmd $h "{ 'execute': 'block-commit',
                                  'arguments': { 'device': 'test',
                                  'top': '"${TEST_IMG}.snp1"' } }" "BLOCK_JOB_COMPLETED"
 
+_cleanup_qemu
+
 echo
 echo "=== Base image info after commit and resize ==="
 TEST_IMG="${TEST_IMG}.base" _img_info | _filter_img_info
author
#2 lore raw
Quoted 8 lines · Max Reitz
Quoted 2 lines · Fam Zheng

Somehow in my locking series, I missed this case where concurrent access to an image is performed, perhaps we can remove this case independently.

The patch itself is good, but this commit message will not make much sense in the git log. I'd be fine with removing it completely because the title itself should be sufficient. (Which is something I can do in case you agree.)

Yes, agreed completely. Thanks!

Fam