* src/qemu_driver.c: patch from Kaitlin Rupert, changing vcpu or

memory of an active domain is a NO_SUPPORT not INTERNAL_ERROR
Daniel
This commit is contained in:
Daniel Veillard 2008-06-12 08:55:13 +00:00
parent d7f62fefed
commit 5d14e4fcce
2 changed files with 8 additions and 3 deletions

View File

@ -1,4 +1,9 @@
Wed Jun 11 17:21:13 CEST 2008 Daniel P. Berrange <berrange@redhat.com>
Thu Jun 12 10:53:08 CEST 2008 Daniel Veillard <veillard@redhat.com>
* src/qemu_driver.c: patch from Kaitlin Rupert, changing vcpu or
memory of an active domain is a NO_SUPPORT not INTERNAL_ERROR
Wed Jun 11 17:21:13 CEST 2008 Daniel Veillard <veillard@redhat.com>
* po/*: update and regenerated

View File

@ -2148,7 +2148,7 @@ static int qemudDomainSetMemory(virDomainPtr dom, unsigned long newmem) {
}
if (qemudIsActiveVM(vm)) {
qemudReportError(dom->conn, dom, NULL, VIR_ERR_INTERNAL_ERROR,
qemudReportError(dom->conn, dom, NULL, VIR_ERR_NO_SUPPORT,
"%s", _("cannot set memory of an active domain"));
return -1;
}
@ -2404,7 +2404,7 @@ static int qemudDomainSetVcpus(virDomainPtr dom, unsigned int nvcpus) {
}
if (qemudIsActiveVM(vm)) {
qemudReportError(dom->conn, dom, NULL, VIR_ERR_INTERNAL_ERROR, "%s",
qemudReportError(dom->conn, dom, NULL, VIR_ERR_NO_SUPPORT, "%s",
_("cannot change vcpu count of an active domain"));
return -1;
}