Displaying 4 results from an estimated 4 matches for "cidl_vm_state_defined".
2013 Sep 24
2
virDomainGetInfo() returns wrong domain state
...f (libvirt_state == VIR_DOMAIN_RUNNING) {
state = 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, &...
2013 Sep 25
0
Re: virDomainGetInfo() returns wrong domain state
...f (libvirt_state == VIR_DOMAIN_RUNNING) {
state = 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, &...
2013 Sep 26
0
Re: [libvirt] virDomainGetInfo() returns wrong domain state
...= 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;
>
> }
While this part ^^^ looks okay, the part below looks suspicious. I mean
not from API perspective, but from data perspective.
>
>
>
>...
2013 Sep 26
1
Re: [libvirt] virDomainGetInfo() returns wrong domain state
...= 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;
>
> }
While this part ^^^ looks okay, the part below looks suspicious. I mean not from API perspective, but from data perspective.
>
>
>
>...