Re: [libvirt] [PATCH] LXC: show used memory as 0 when domain is not active

2014-07-23 Thread Gao feng
On 07/17/2014 05:28 PM, Chen Hanxiao wrote: > Before: > virsh # dominfo chx3 > State: shut off > Max memory: 92160 KiB > Used memory:92160 KiB > > After: > virsh # dominfo container1 > State: shut off > Max memory: 92160 KiB > Used memory:0 KiB > > Similar to qem

Re: [libvirt] [PATCH] LXC: show used memory as 0 when domain is not active

2014-07-21 Thread chenhanx...@cn.fujitsu.com
ping > -Original Message- > From: libvir-list-boun...@redhat.com [mailto:libvir-list-boun...@redhat.com] > On Behalf Of Chen Hanxiao > Sent: Thursday, July 17, 2014 5:28 PM > To: libvir-list@redhat.com > Subject: [libvirt] [PATCH] LXC: show used memory as 0 when domai

[libvirt] [PATCH] LXC: show used memory as 0 when domain is not active

2014-07-17 Thread Chen Hanxiao
Before: virsh # dominfo chx3 State: shut off Max memory: 92160 KiB Used memory:92160 KiB After: virsh # dominfo container1 State: shut off Max memory: 92160 KiB Used memory:0 KiB Similar to qemu cases. Signed-off-by: Chen Hanxiao --- src/lxc/lxc_driver.c | 2