|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v4 2/3] libxl: print message how to recover from xl cpupool-cpu-remove errors
Juergen Gross writes ("[PATCH v4 2/3] libxl: print message how to recover from
xl cpupool-cpu-remove errors"):
> An error occurring when calling "xl cpupool-cpu-remove" might leave
> the system in a state where a cpu is neither completely free nor in
> a cpupool.
Surely this is a bug. Can it not be avoided ?
> This can easily be repaired by adding the cpu via
> "xl cpupool-cpu-add" to the cpupool where it was removed from before.
> Print a message telling this the user in case of an error.
...
> - if (libxl_cpupool_cpuremove_cpumap(ctx, poolid, &cpumap))
> - fprintf(stderr, "some cpus may not have been removed from %s\n",
> pool);
> + if (libxl_cpupool_cpuremove_cpumap(ctx, poolid, &cpumap)) {
> + fprintf(stderr, "Some cpus may have not or only partially been
> removed from '%s'.\n", pool);
> + fprintf(stderr, "If a cpu can't be added to another cpupool, add it
> to '%s' again and retry.\n", pool);
> + }
If it can't be avoided then I guess this will have to do but I remain
to be convinced.
In any case, while you're editing this code, can you please wrap your
long lines.
Thanks,
Ian.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |