mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-08 22:15:21 +00:00
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);
|
virCommandSetOutputBuffer(cmd, &help);
|
||||||
virCommandClearCaps(cmd);
|
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)
|
if (virCommandRun(cmd, &exitstatus) < 0)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user