Displaying 4 results from an estimated 4 matches for "cidl_vm_state_not_defined".
2013 Sep 24
2
virDomainGetInfo() returns wrong domain state
...ate = cidl_vm_state_running;
} else if ((libvirt_state == VIR_DOMAIN_PAUSED) ||
(libvirt_state == VIR_DOMAIN_BLOCKED)) {
state = cidl_vm_state_paused;
} else if (libvirt_state == VIR_DOMAIN_SHUTOFF) {
state = cidl_vm_state_defined;
} else {
state = cidl_vm_state_not_defined;
}
return state;
}
virDomainInfo res_util;
virDomainPtr dom = virDomainLookupByName(virt,
private_names[vm_idx]);
res = virDomainGetInfo(dom, &res_util);
vminfo[vm_idx].vm_state =...
2013 Sep 25
0
Re: virDomainGetInfo() returns wrong domain state
...ate = cidl_vm_state_running;
} else if ((libvirt_state == VIR_DOMAIN_PAUSED) ||
(libvirt_state == VIR_DOMAIN_BLOCKED)) {
state = cidl_vm_state_paused;
} else if (libvirt_state == VIR_DOMAIN_SHUTOFF) {
state = cidl_vm_state_defined;
} else {
state = cidl_vm_state_not_defined;
}
return state;
}
virDomainInfo res_util;
virDomainPtr dom = virDomainLookupByName(virt,
private_names[vm_idx]);
res = virDomainGetInfo(dom, &res_util);
vminfo[vm_idx].vm_state =...
2013 Sep 26
0
Re: [libvirt] virDomainGetInfo() returns wrong domain state
...DOMAIN_PAUSED) ||
>
> (libvirt_state == VIR_DOMAIN_BLOCKED)) {
>
> state = cidl_vm_state_paused;
>
> } else if (libvirt_state == VIR_DOMAIN_SHUTOFF) {
>
> state = cidl_vm_state_defined;
>
> } else {
>
> state = cidl_vm_state_not_defined;
>
> }
>
> return state;
>
> }
While this part ^^^ looks okay, the part below looks suspicious. I mean
not from API perspective, but from data perspective.
>
>
>
> virDomainInfo res_util;
>
> virDomainPtr dom = virDomainLoo...
2013 Sep 26
1
Re: [libvirt] virDomainGetInfo() returns wrong domain state
...DOMAIN_PAUSED) ||
>
> (libvirt_state == VIR_DOMAIN_BLOCKED)) {
>
> state = cidl_vm_state_paused;
>
> } else if (libvirt_state == VIR_DOMAIN_SHUTOFF) {
>
> state = cidl_vm_state_defined;
>
> } else {
>
> state = cidl_vm_state_not_defined;
>
> }
>
> return state;
>
> }
While this part ^^^ looks okay, the part below looks suspicious. I mean not from API perspective, but from data perspective.
>
>
>
> virDomainInfo res_util;
>
> virDomainPtr dom = virDomainLoo...