Re: [PATCH] setmem checks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Mark Johnson wrote:
1673a1675,1677
    if (virDomainGetInfo(dom, &info) != 0) {
      info.maxMem = 0;
    }
1675c1679
<     if (kilobytes <= 0) {
---
    if ((kilobytes <= 0)  || (kilobytes > info.maxMem)) {

I don't understand this bit. If virDomainGetInfo fails then it'll always give an error because kilobytes > info.maxMem (== 0) ?

Rich.

--
Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/
Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod
Street, Windsor, Berkshire, SL4 1TE, United Kingdom.  Registered in
England and Wales under Company Registration No. 03798903

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]