[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH for-2.10 7/7] qemu-iotests/059: Fix leaked image
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [PATCH for-2.10 7/7] qemu-iotests/059: Fix leaked image files |
Date: |
Fri, 28 Jul 2017 14:33:48 -0500 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 |
On 07/28/2017 08:14 AM, Kevin Wolf wrote:
> qemu-iotests 059 left a whole lot of image files behind in the scratch
> directory because VMDK creates additional files for extents and cleaning
> them up requires the original image intact (it parses qemu-img info
> output to find all extent files), but the image overwrote it many times
> like it works for all other image formats.
>
> In addition, _use_sample_img overwrites the TEST_IMG variable, causing
> new images created afterwards to reuse the name of the sample file
> rather than the usual t.IMGFMT.
>
> This patch adds an intermediate _cleanup_test_img after each subtest
> that created an image file with additional extent files, and also after
> each use of a sample image. _cleanup_test_img is also changed so that it
> resets TEST_IMG after a sample image is cleaned up.
>
> Note that this test was failing before this commit and continues to do
> so after it. This failure was introduced in commit 9877860 ('block/vmdk:
> Report failures in vmdk_read_cid()') and needs to be dealt with
> separately.
> @@ -30,6 +30,7 @@ status=1 # failure is the default!
> _cleanup()
> {
> _cleanup_test_img
> + rm -f "$TEST_IMG.qcow2"
Care to fix the TAB damage while you're in the neighborhood?
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org
signature.asc
Description: OpenPGP digital signature
- [Qemu-devel] [PATCH for-2.10 2/7] qemu-iotests: Remove blkdebug.conf after tests, (continued)
- [Qemu-devel] [PATCH for-2.10 2/7] qemu-iotests: Remove blkdebug.conf after tests, Kevin Wolf, 2017/07/28
- [Qemu-devel] [PATCH for-2.10 4/7] qemu-iotests/153: Fix leaked scratch images, Kevin Wolf, 2017/07/28
- [Qemu-devel] [PATCH for-2.10 5/7] qemu-iotests/162: Fix leaked temporary files, Kevin Wolf, 2017/07/28
- [Qemu-devel] [PATCH for-2.10 6/7] qemu-iotests/063: Fix leaked image, Kevin Wolf, 2017/07/28
- [Qemu-devel] [PATCH for-2.10 7/7] qemu-iotests/059: Fix leaked image files, Kevin Wolf, 2017/07/28
- Re: [Qemu-devel] [PATCH for-2.10 0/7] qemu-iotests: Fix leaked temporary file fixes, Eric Blake, 2017/07/28