[libvirt] 答复: [PATCH] libvirt: lxc: Add Get/Set vcpus for lxc

2014-08-25 Thread Li, Yang
On 2014/8/22 17:50, Li Yang wrote: >> 1.Add function to get vcpu count for lxc(vcpucount) 2.Add function to >> set vcpu count for lxc(setvcpus) >> >> Signed-off-by: Li Yang >> --- >> src/lxc/lxc_driver.c | 159 >> +

[libvirt] [PATCH] libvirt: lxc: Add Get/Set vcpus for lxc

2014-08-22 Thread Li Yang
1.Add function to get vcpu count for lxc(vcpucount) 2.Add function to set vcpu count for lxc(setvcpus) Signed-off-by: Li Yang --- src/lxc/lxc_driver.c | 159 ++ 1 files changed, 159 insertions(+), 0 deletions(-) diff --git a/src/lxc/lxc_driver.c

[libvirt] [PATCH] virsh: man: Add LXC format info for domxml-from/to-native

2014-08-20 Thread Li Yang
Signed-off-by: Li Yang --- tools/virsh.pod |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/virsh.pod b/tools/virsh.pod index 9efb920..015f119 100644 --- a/tools/virsh.pod +++ b/tools/virsh.pod @@ -1128,14 +1128,16 @@ in order to get or set the guest time

[libvirt] [PATCH] virsh: Fix help info for freepages

2014-08-20 Thread Li Yang
Signed-off-by: Li Yang --- tools/virsh-host.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/virsh-host.c b/tools/virsh-host.c index ae14311..ad821b3 100644 --- a/tools/virsh-host.c +++ b/tools/virsh-host.c @@ -263,10 +263,10 @@ cmdFreecell(vshControl *ctl

[libvirt] [PATCH] virsh: Fix comment for net-undefine

2014-08-18 Thread Li Yang
net-undefine doesn't only undefine an inactive network, but also an active network(persistent), it just cannot undefine a transient network. Signed-off-by: Li Yang --- tools/virsh-network.c |4 ++-- tools/virsh.pod |3 ++- 2 files changed, 4 insertions(+), 3 deletions(-)

[libvirt] [PATCH] man: virsh: Add 'vcpu_period' and 'vcpu_quota' support info for LXC

2014-08-18 Thread Li Yang
Signed-off-by: Li Yang --- tools/virsh.pod |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tools/virsh.pod b/tools/virsh.pod index f07deec..a2d89b2 100644 --- a/tools/virsh.pod +++ b/tools/virsh.pod @@ -1570,7 +1570,7 @@ I Allows you to show (and set) the domain

[libvirt] [PATCH] libvirt: Fix 'quest' typo in comment

2014-07-25 Thread Li Yang
Signed-off-by: Li Yang --- src/libvirt.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libvirt.c b/src/libvirt.c index 79bcdf1..143d319 100644 --- a/src/libvirt.c +++ b/src/libvirt.c @@ -2950,7 +2950,7 @@ virDomainSaveImageDefineXML(virConnectPtr conn, const

[libvirt] [PATCH] virsh: Return false if only '--wipe-storage' is assigned when undefine a domain

2014-05-13 Thread Li Yang
d better raise an error message. Before: $ virsh undefine virt-tests-vm1 --wipe-storage Domain virt-tests-vm1 has been undefined After: $ virsh undefine virt-tests-vm1 --wipe-storage error: '--wipe-storage' needs storage volume deletion: '--stroage ' or '--remove-all

[libvirt] [PATCH 2/2] datatypes: Fix comment of secret uuid

2014-04-28 Thread Li Yang
Signed-off-by: Li Yang --- src/datatypes.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/datatypes.h b/src/datatypes.h index 9621c55..3bc2420 100644 --- a/src/datatypes.h +++ b/src/datatypes.h @@ -469,7 +469,7 @@ struct _virNodeDevice { struct _virSecret

[libvirt] [PATCH 1/2] virsh: Replace list element to defined variable

2014-04-28 Thread Li Yang
Signed-off-by: Li Yang --- tools/virsh-secret.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tools/virsh-secret.c b/tools/virsh-secret.c index 47974fe..e996c72 100644 --- a/tools/virsh-secret.c +++ b/tools/virsh-secret.c @@ -558,7 +558,7 @@ cmdSecretList(vshControl

[libvirt] [PATCH] virsh: Move 'cpu-baseline' to host command group

2014-04-24 Thread Li Yang
As manual said, 'cpu-baseline' isn't specific to a domain, it should not belong to domain command group, and it's used for host usually, so move it to host command group. Signed-off-by: Li Yang --- tools/virsh-domain.c | 115 -

[libvirt] [PATCH v2] virsh: Separate 'create'/'modify' message for secret-define

2014-04-21 Thread Li Yang
: Li Yang --- tools/virsh-secret.c | 18 +- 1 files changed, 17 insertions(+), 1 deletions(-) diff --git a/tools/virsh-secret.c b/tools/virsh-secret.c index 10d5db3..47974fe 100644 --- a/tools/virsh-secret.c +++ b/tools/virsh-secret.c @@ -96,6 +96,8 @@ cmdSecretDefine(vshControl

Re: [libvirt] [PATCH] virsh: Separate 'create'/'modify' message for secret-define

2014-04-20 Thread Li, Yang
> On Fri, Apr 18, 2014 at 12:20:26 +0200, Martin Kletzander wrote: > > On Fri, Apr 18, 2014 at 04:27:10AM -0400, Li Yang wrote: > > >The current message of secret-define always be: > > >Secret 09a9736f-eedb-449c-9983-80d0ab67393f created > > > > >even yo

Re: [libvirt] [PATCH] virsh: Make secret's usage can be modified if the usage isn't used

2014-04-20 Thread Li, Yang
27;. > If '/tmp/test1' has been used for another secret, error message will be > outputed. > > Signed-off-by: Li Yang > --- > src/secret/secret_driver.c | 18 +++--- > 1 files changed, 11 insertions(+), 7 deletions(-) -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

[libvirt] [PATCH] virsh: Separate 'create'/'modify' message for secret-define

2014-04-18 Thread Li Yang
: Li Yang --- tools/virsh-secret.c | 16 +++- 1 files changed, 15 insertions(+), 1 deletions(-) diff --git a/tools/virsh-secret.c b/tools/virsh-secret.c index 10d5db3..d1cbe04 100644 --- a/tools/virsh-secret.c +++ b/tools/virsh-secret.c @@ -39,6 +39,7 @@ #include "virutil.h"

[libvirt] [PATCH] Modify help information of virsh list command

2014-03-26 Thread Li Yang
Use 'virsh list domain --title' option can get domain's title, not description, the original help information 'show short domain description' will confuse users, so modify it to 'show domain title' Signed-off-by: Li Yang --- tools/virsh-domain-monitor.c |