[libvirt] [PATCH v2 3/5] cgroup macros refactoring

2013-08-11 Thread Roman Bogorodskiy
Continue converting to VIR_CGROUP_SUPPORTED --- src/util/vircgroup.c | 378 +++ 1 file changed, 202 insertions(+), 176 deletions(-) diff --git a/src/util/vircgroup.c b/src/util/vircgroup.c index 3640fbd..795897b 100644 --- a/src/util/vircgroup.c

[libvirt] [PATCH v2 2/5] cgroup macros refactoring

2013-08-11 Thread Roman Bogorodskiy
- Convert virCgroupGet* to VIR_CGROUP_SUPPORTED - Convert virCgroup(Get|Set)FreezerState to VIR_CGROUP_SUPPORTED - Convert virCgroupRemoveRecursively to VIR_CGROUP_SUPPORTED --- src/util/vircgroup.c | 363 +-- 1 file changed, 204 insertions(+), 159

[libvirt] [PATCH v2 1/5] cgroup macros refactoring

2013-08-11 Thread Roman Bogorodskiy
- Introduce VIR_CGROUP_SUPPORTED conditional - Convert virCgroupKill* to use it - Convert virCgroupIsolateMount() to use it --- src/util/vircgroup.c | 59 1 file changed, 32 insertions(+), 27 deletions(-) diff --git a/src/util/vircgroup.c

[libvirt] [PATCH v2 5/5] cgroup macros refactoring

2013-08-11 Thread Roman Bogorodskiy
Complete the refactoring by adding missing stubs so it compiles on platform without cgroup support. --- src/util/vircgroup.c | 311 ++- 1 file changed, 306 insertions(+), 5 deletions(-) diff --git a/src/util/vircgroup.c b/src/util/vircgroup.c index

[libvirt] [PATCH v2 4/5] cgroup macros refactoring

2013-08-11 Thread Roman Bogorodskiy
Complete moving to VIR_CGROUP_SUPPORTED --- src/util/vircgroup.c | 497 --- 1 file changed, 272 insertions(+), 225 deletions(-) diff --git a/src/util/vircgroup.c b/src/util/vircgroup.c index 795897b..e5625f8 100644 --- a/src/util/vircgroup.c +++

[libvirt] [PATCH] bridge driver: implement networkEnableIpForwarding for BSD

2013-08-11 Thread Roman Bogorodskiy
Implement networkEnableIpForwarding() using BSD style sysctl. --- configure.ac| 7 --- src/network/bridge_driver.c | 14 ++ 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index d3219ce..cc2213d 100644 --- a/configure.ac

[libvirt] [PATCH v3] BSD: implement virNetDev(Set|Clear)IPv4Address

2013-08-11 Thread Roman Bogorodskiy
Provide an implementation of virNetDev(Set|Clear)IPv4Address based on BSD ifconfig tool in addition to 'ip' from Linux iproute2 package. --- configure.ac | 15 +++ src/util/virnetdev.c | 24 2 files changed, 39 insertions(+) diff --git a/configure.ac

[libvirt] [PATCH v2] bridge driver: implement networkEnableIpForwarding for BSD

2013-08-11 Thread Roman Bogorodskiy
Implement networkEnableIpForwarding() using BSD style sysctl. --- configure.ac| 7 --- src/network/bridge_driver.c | 13 + 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index d3219ce..cc2213d 100644 --- a/configure.ac

Re: [libvirt] [PATCHv3] build: more workarounds for if_bridge.h

2013-08-11 Thread Doug Goldstein
On Fri, Aug 9, 2013 at 10:59 AM, Eric Blake ebl...@redhat.com wrote: On 08/09/2013 09:38 AM, Daniel P. Berrange wrote: On Wed, Aug 07, 2013 at 05:10:26PM -0600, Eric Blake wrote: This is a second attempt at fixing the problem first attempted in commit 2df8d99; basically undoing the fact that

Re: [libvirt] [test-API][PATCH] Add network update test case

2013-08-11 Thread Guannan Ren
On 08/09/2013 05:28 PM, hongming zhang wrote: The patch add network update test case to cover network update api. modified: cases/basic_network.conf - The test suite covers add/modify/delete ip-dhcp-host in network. For other test scenario, they can be test via customing the conf file. new