[Qemu-devel] [PATCH v2 0/3] qemu-img: removing created when img_create fails

Daniel Henrique Barboza posted 3 patches 5 years, 1 month ago
Test docker-mingw@fedora failed
Test docker-clang@ubuntu passed
Test asan passed
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20190322175241.5954-1-danielhb413@gmail.com
block.c                   | 117 ++++++++++++++++++++++++++++++++++++++
block/crypto.c            |   2 +
include/block/block.h     |   6 ++
include/block/block_int.h |   6 ++
qemu-img.c                |  29 +++++++++-
5 files changed, 159 insertions(+), 1 deletion(-)
[Qemu-devel] [PATCH v2 0/3] qemu-img: removing created when img_create fails
Posted by Daniel Henrique Barboza 5 years, 1 month ago
This is a patch series that follows up the patch [1] after
the review from Daniel P. Berrange.

The new interface is being implemented only by the LUKS driver
because this is the error condition I'm trying to fix. My first
idea when coding it was to implement this interface in all drivers
that deals with local files, but I thought it would be overkill -
at least for this second spin.


[1] https://lists.gnu.org/archive/html/qemu-devel/2019-03/msg05899.html


Daniel Henrique Barboza (3):
  block: introducing 'bdrv_co_delete_file' interface
  block.c: adding bdrv_delete_file
  qemu-img.c: clean up created file on img_create failure

 block.c                   | 117 ++++++++++++++++++++++++++++++++++++++
 block/crypto.c            |   2 +
 include/block/block.h     |   6 ++
 include/block/block_int.h |   6 ++
 qemu-img.c                |  29 +++++++++-
 5 files changed, 159 insertions(+), 1 deletion(-)

-- 
2.20.1


Re: [Qemu-devel] [PATCH v2 0/3] qemu-img: removing created when img_create fails
Posted by no-reply@patchew.org 5 years, 1 month ago
Patchew URL: https://patchew.org/QEMU/20190322175241.5954-1-danielhb413@gmail.com/



Hi,

This series failed the docker-mingw@fedora build test. Please find the testing commands and
their output below. If you have Docker installed, you can probably reproduce it
locally.

=== TEST SCRIPT BEGIN ===
#!/bin/bash
time make docker-test-mingw@fedora SHOW_ENV=1 J=14 NETWORK=1
=== TEST SCRIPT END ===

  CC      aarch64-softmmu/tcg/tcg-op.o
  CC      aarch64-softmmu/tcg/tcg-op-vec.o
/tmp/qemu-test/src/qemu-img.c: In function 'img_create':
/tmp/qemu-test/src/qemu-img.c:568:13: error: 'filename' may be used uninitialized in this function [-Werror=maybe-uninitialized]
             error_reportf_err(local_err, "%s: ", filename);
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors


The full log is available at
http://patchew.org/logs/20190322175241.5954-1-danielhb413@gmail.com/testing.docker-mingw@fedora/?type=message.
---
Email generated automatically by Patchew [https://patchew.org/].
Please send your feedback to patchew-devel@redhat.com
Re: [Qemu-devel] [PATCH v2 0/3] qemu-img: removing created when img_create fails
Posted by Daniel Henrique Barboza 5 years, 1 month ago

On 3/22/19 4:02 PM, no-reply@patchew.org wrote:
> Patchew URL: https://patchew.org/QEMU/20190322175241.5954-1-danielhb413@gmail.com/
>
>
>
> Hi,
>
> This series failed the docker-mingw@fedora build test. Please find the testing commands and
> their output below. If you have Docker installed, you can probably reproduce it
> locally.
>
> === TEST SCRIPT BEGIN ===
> #!/bin/bash
> time make docker-test-mingw@fedora SHOW_ENV=1 J=14 NETWORK=1
> === TEST SCRIPT END ===
>
>    CC      aarch64-softmmu/tcg/tcg-op.o
>    CC      aarch64-softmmu/tcg/tcg-op-vec.o
> /tmp/qemu-test/src/qemu-img.c: In function 'img_create':
> /tmp/qemu-test/src/qemu-img.c:568:13: error: 'filename' may be used uninitialized in this function [-Werror=maybe-uninitialized]
>               error_reportf_err(local_err, "%s: ", filename);
>               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> cc1: all warnings being treated as errors

Not sure why it complained about this. Travis didn't care ....


How can I reproduce this docker use test? I have a Fedora29 box with 
Docker and
issuing "make docker-test-mingw(...)" as mentioned above doesn't work.


Thanks,


dhb

>
> The full log is available at
> http://patchew.org/logs/20190322175241.5954-1-danielhb413@gmail.com/testing.docker-mingw@fedora/?type=message.
> ---
> Email generated automatically by Patchew [https://patchew.org/].
> Please send your feedback to patchew-devel@redhat.com


Re: [Qemu-devel] [PATCH v2 0/3] qemu-img: removing created when img_create fails
Posted by Wainer dos Santos Moschetta 5 years, 1 month ago

On 03/22/2019 06:49 PM, Daniel Henrique Barboza wrote:
>
>
> On 3/22/19 4:02 PM, no-reply@patchew.org wrote:
>> Patchew URL: 
>> https://patchew.org/QEMU/20190322175241.5954-1-danielhb413@gmail.com/
>>
>>
>>
>> Hi,
>>
>> This series failed the docker-mingw@fedora build test. Please find 
>> the testing commands and
>> their output below. If you have Docker installed, you can probably 
>> reproduce it
>> locally.
>>
>> === TEST SCRIPT BEGIN ===
>> #!/bin/bash
>> time make docker-test-mingw@fedora SHOW_ENV=1 J=14 NETWORK=1
>> === TEST SCRIPT END ===
>>
>>    CC      aarch64-softmmu/tcg/tcg-op.o
>>    CC      aarch64-softmmu/tcg/tcg-op-vec.o
>> /tmp/qemu-test/src/qemu-img.c: In function 'img_create':
>> /tmp/qemu-test/src/qemu-img.c:568:13: error: 'filename' may be used 
>> uninitialized in this function [-Werror=maybe-uninitialized]
>>               error_reportf_err(local_err, "%s: ", filename);
>>               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> cc1: all warnings being treated as errors
>
> Not sure why it complained about this. Travis didn't care ....
>
>
> How can I reproduce this docker use test? I have a Fedora29 box with 
> Docker and
> issuing "make docker-test-mingw(...)" as mentioned above doesn't work.


I could reproduce the above error on my Fedora 29 x86_64 machine. From 
the build dir, run as:

make docker-test-mingw@fedora SHOW_ENV=1 J=14 NETWORK=1

Compile QEMU sources with default configs also fails.

- Wainer

>
>
>
> Thanks,
>
>
> dhb
>
>>
>> The full log is available at
>> http://patchew.org/logs/20190322175241.5954-1-danielhb413@gmail.com/testing.docker-mingw@fedora/?type=message. 
>>
>> ---
>> Email generated automatically by Patchew [https://patchew.org/].
>> Please send your feedback to patchew-devel@redhat.com
>
>