[libvirt] [PATCH] qemudDomainRestore: handle a case of virDomainSaveStatus failure
Eric Blake
eblake at redhat.com
Tue May 18 15:15:07 UTC 2010
On 05/18/2010 06:17 AM, Jim Meyering wrote:
> For each of the other uses of virDomainSaveStatus, the caller
> handles failure. Here it was ignored.
>
> At first I was inclined to simply "goto endjob;", like a few other
> uses in this file, but probing a bit, I found a few paths by which
> it could fail with no diagnostic whatsoever. And even if we've
> already emitted a diagnostic about some lower-level failure, it
> probably helps the user to know what high-level operation failed.
Makes sense.
> qemuDomainObjExitMonitorWithDriver(driver, vm);
> vm->state = VIR_DOMAIN_RUNNING;
> - virDomainSaveStatus(driver->caps, driver->stateDir, vm);
> + if (virDomainSaveStatus(driver->caps, driver->stateDir, vm) < 0) {
> + VIR_WARN("Failed to save status on vm %s", vm->def->name);
Merge conflict with your patch to translate all VIR_WARN?
At any rate, ACK.
--
Eric Blake eblake at redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20100518/1737fe7c/attachment-0001.sig>
More information about the libvir-list
mailing list