* src/virsh.c: applied patch from Masayuki Sunou to avoid a bug

when using a wrong CPU number in vcpupin and report the error
Daniel
This commit is contained in:
Daniel Veillard 2007-03-22 10:27:54 +00:00
parent 794d6d7a0c
commit 3d6dbfeab0
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Thu Mar 22 11:35:05 CET 2007 Daniel Veillard <veillard@redhat.com>
* src/virsh.c: applied patch from Masayuki Sunou to avoid a bug
when using a wrong CPU number in vcpupin and report the error
Thu Mar 22 10:47:46 CET 2007 Daniel Veillard <veillard@redhat.com>
* libvirt.spec.in: one more extra fix for autostart dir from

View File

@ -1358,6 +1358,11 @@ cmdVcpupin(vshControl * ctl, vshCmd * cmd)
if (cpu < VIR_NODEINFO_MAXCPUS(nodeinfo)) {
VIR_USE_CPU(cpumap, cpu);
} else {
vshError(ctl, FALSE, _("Physical CPU %d doesn't exist."), cpu);
free(cpumap);
virDomainFree(dom);
return FALSE;
}
cpulist = index(cpulist, ',');
if (cpulist)