|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [Patch 2/2] tools/libxc: Prevent erroneous success from xc_domain_restore
On Tue, 2014-02-04 at 17:16 +0000, Andrew Cooper wrote:
> > goto out;
> > }
> > } else {
> > - rc = -1;
Mostly looks good but I'm not sure about this change
We get here on input error (toolstack data available but no callback
provided) which is neither migration success nor failure, it's a bug in
the caller. So arguably returning a separate failure from
success/unsuccess makes sense.
I'd have thought it ought to set errno (too EINVAL perhaps) too, but
lets not mess with that now.
Ian.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |