mirror of https://gitee.com/openkylin/libvirt.git
storage: Add comment to picking return value of qemu-img
Commit d7b2679253
introduced
a return value picking of qemu-img on '-h', but without any comment.
This commit is contained in:
parent
bb1c5423b9
commit
5f88d198bd
|
@ -628,6 +628,9 @@ static int virStorageBackendQEMUImgBackingFormat(const char *qemuimg)
|
|||
virCommandSetOutputBuffer(cmd, &help);
|
||||
virCommandClearCaps(cmd);
|
||||
|
||||
/* qemuimg doesn't return zero exit status on -h,
|
||||
* therefore we need to provide pointer for storing
|
||||
* exit status, although we don't parse it any later */
|
||||
if (virCommandRun(cmd, &exitstatus) < 0)
|
||||
goto cleanup;
|
||||
|
||||
|
|
Loading…
Reference in New Issue