Re: [PATCH v2 2/5] virFileRewrite: Move error reporting into callback

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Feb 11, 2022 at 01:30:26PM +0100, Michal Privoznik wrote:
> When rewriting a file using virFileRewrite() and error occurs
> while writing into a temporary file it's actually the callback
> that can report the most accurate error. Move error reporting
> into very few callback we have currently. Those callbacks are
> trivial so the benefit of this change is not obvious, but this
> will change shortly when slightly more complicated callback is
> introduced.
> 
> Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
> ---
>  src/util/virfile.c | 18 ++++++++++++------
>  src/util/virfile.h |  4 +++-
>  src/util/virxml.c  | 19 ++++++++++++++-----
>  3 files changed, 29 insertions(+), 12 deletions(-)

Reviewed-by: Daniel P. Berrangé <berrange@xxxxxxxxxx>


Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux