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

2022-02-11 Thread Daniel P . Berrangé
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 current

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

2022-02-11 Thread Michal Privoznik
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 obvio