When dom0 fails to balloon enough memory to allow a new domain to start,

an exception is thrown.  The test that decides which exception to throw
is backwards, resulting in strange error messages.  The attached patch
fixes the problem.

Signed-off-by:  Charles Coffing <ccoffing@novell.com>
This commit is contained in:
kaf24@firebug.cl.cam.ac.uk committed 2006-04-01 10:52:47 +01:00
1 parent 840ac8df5a
commit d057bf8506
1 file changed
+1 -1
+1 -1
View File
@@ -152,7 +152,7 @@ def free(required):
'I cannot release any more. I need %d MiB but '
'only have %d.') %
(need_mem, free_mem))
elif new_alloc >= dom0_min_mem:
elif new_alloc < dom0_min_mem:
raise VmError(
('I need %d MiB, but dom0_min_mem is %d and shrinking to '
'%d MiB would leave only %d MiB free.') %
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.