The first patch converts "fprintf(stderr,..." to error_setg with errp, and fixes style of error message texts.
The second patch checks the compatibility of zeroed_grain flag and flat type and reports error if both are true. v2: [01] More conversion of error messages, also catch error from bdrv_{pread,pwrite} with error_setg_errno. Fam Zheng (2): vmdk: convert error code to use errp vmdk: refuse enabling zeroed grain with flat images block/vmdk.c | 120 ++++++++++++++++++++++++++++++++--------------------------- 1 file changed, 65 insertions(+), 55 deletions(-) -- 1.8.3.1