[libvirt] [PATCH v2 6/9] lxc: start using virDomainObjCheckActive

Ján Tomko jtomko at redhat.com
Wed Apr 18 08:07:04 UTC 2018


On Tue, Apr 17, 2018 at 10:13:31PM +0000, Clementine Hayat wrote:
>Signed-off-by: Clementine Hayat <clem at lse.epita.fr>
>---
> src/lxc/lxc_driver.c | 60 +++++++++-----------------------------------
> 1 file changed, 12 insertions(+), 48 deletions(-)
>

lxcDomainMemoryStats can also use it:
src/lxc/lxc_driver.c:5169:    if (!virDomainObjIsActive(vm)) {
src/lxc/lxc_driver.c-5170-        virReportError(VIR_ERR_OPERATION_INVALID, "%s",
src/lxc/lxc_driver.c-5171-                       _("domain is not active"));
src/lxc/lxc_driver.c-5172-        goto endjob;
src/lxc/lxc_driver.c-5173-    }

It's not a one-to-one replacement, but 'active' and 'running' are close
enough.

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20180418/a3ccc698/attachment-0001.sig>


More information about the libvir-list mailing list