[libvirt] [PATCH v4 0/4] qemu: Report better error on dump/migrate failure

Andrea Bolognani posted 4 patches 5 years, 9 months ago
Failed in applying to current master (apply log)
src/qemu/qemu_driver.c | 16 ++++++++++------
src/util/virfile.c     | 22 ++++++++++++++++------
2 files changed, 26 insertions(+), 12 deletions(-)
[libvirt] [PATCH v4 0/4] qemu: Report better error on dump/migrate failure
Posted by Andrea Bolognani 5 years, 9 months ago
Changes from [v3]:

* Make sure errors from virFileWrapperFdClose() result in an
  overall failure being bubbled up;
* don't call virReportError() unless the function is going to
  report the failure through its return code as well;
* revert b0c3e931804a more thoroughly.

Changes from [v2]:

* Move error reporting from virFileWrapperFdFree() to
  virFileWrapperFdClose().

Changes from [v1]:

* Use VIR_FREE() followed by VIR_ALLOC_N() instead of manually
  setting the last (and only) byte of the array returned by
  VIR_REALLOC_N() to zero.

[v3] https://www.redhat.com/archives/libvir-list/2019-February/msg01069.html
[v2] https://www.redhat.com/archives/libvir-list/2019-February/msg00782.html
[v1] https://www.redhat.com/archives/libvir-list/2019-February/msg00156.html

Andrea Bolognani (4):
  util: Make it safe to call virFileWrapperFdClose() multiple times
  qemu: Always call virFileWrapperFdClose()
  util: Move error reporting back to virFileWrapperFdClose()
  util: Report error in virFileWrapperFdClose()

 src/qemu/qemu_driver.c | 16 ++++++++++------
 src/util/virfile.c     | 22 ++++++++++++++++------
 2 files changed, 26 insertions(+), 12 deletions(-)

-- 
2.20.1

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [PATCH v4 0/4] qemu: Report better error on dump/migrate failure
Posted by Ján Tomko 5 years, 9 months ago
On Wed, Feb 20, 2019 at 03:24:56PM +0100, Andrea Bolognani wrote:
>Changes from [v3]:
>
>* Make sure errors from virFileWrapperFdClose() result in an
>  overall failure being bubbled up;
>* don't call virReportError() unless the function is going to
>  report the failure through its return code as well;
>* revert b0c3e931804a more thoroughly.
>
>Changes from [v2]:
>
>* Move error reporting from virFileWrapperFdFree() to
>  virFileWrapperFdClose().
>
>Changes from [v1]:
>
>* Use VIR_FREE() followed by VIR_ALLOC_N() instead of manually
>  setting the last (and only) byte of the array returned by
>  VIR_REALLOC_N() to zero.
>
>[v3] https://www.redhat.com/archives/libvir-list/2019-February/msg01069.html
>[v2] https://www.redhat.com/archives/libvir-list/2019-February/msg00782.html
>[v1] https://www.redhat.com/archives/libvir-list/2019-February/msg00156.html
>
>Andrea Bolognani (4):
>  util: Make it safe to call virFileWrapperFdClose() multiple times
>  qemu: Always call virFileWrapperFdClose()
>  util: Move error reporting back to virFileWrapperFdClose()
>  util: Report error in virFileWrapperFdClose()
>
> src/qemu/qemu_driver.c | 16 ++++++++++------
> src/util/virfile.c     | 22 ++++++++++++++++------
> 2 files changed, 26 insertions(+), 12 deletions(-)
>

Reviewed-by: Ján Tomko <jtomko@redhat.com>

Jano
--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list