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

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

 



On Tue, Apr 17, 2018 at 10:13:31PM +0000, Clementine Hayat wrote:
Signed-off-by: Clementine Hayat <clem@xxxxxxxxxxxx>
---
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

Attachment: signature.asc
Description: Digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[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]

  Powered by Linux