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