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:
Michal Privoznik 2011-05-24 08:54:37 +02:00
parent bb1c5423b9
commit 5f88d198bd
1 changed files with 3 additions and 0 deletions

View File

@ -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;