[libvirt] [PATCH 0/6] Support to use iscsi storage in domain conf

2013-06-09 Thread Osier Yang
This supports to use libvirt iscsi storage volume for qemu with either the LUN's path on host (e.g. /dev/disk/by-path/*-lun-1), or the the libiscsi uri (e.g iscsi://demo.org:6000/$iqn/1)in domain conf. Osier Yang (6): storage_iscsi: Reflect the default target port conf: Introduce new XML tag "

[libvirt] [PATCH 0/6] Support to use iscsi storage in domain conf

2013-06-09 Thread Osier Yang
This supports to use libvirt iscsi storage volume for qemu with either the LUN's path on host (e.g. /dev/disk/by-path/*-lun-1), or the the libiscsi uri (e.g iscsi://demo.org:6000/$iqn/1)in domain conf. Osier Yang (6): storage_iscsi: Reflect the default target port conf: Introduce new XML tag "

Re: [libvirt] [PATCH v4 01/10] LXC: Introduce New XML element for user namespace

2013-06-09 Thread Gao feng
On 06/07/2013 07:47 PM, Daniel P. Berrange wrote: > On Fri, Jun 07, 2013 at 12:38:53PM +0100, Daniel P. Berrange wrote: >> On Fri, Jun 07, 2013 at 03:12:18PM +0800, Gao feng wrote: >>> This patch introduces new element for >>> user namespace. for example >>> >>> >>> >>> >>> >>> this ne

[libvirt] [PATCH for v1.0.5-maint] Fix use of VIR_STRDUP vs strdup

2013-06-09 Thread Doug Goldstein
Commit 894f784948a93760629de3cb195c69ef4f4b831f broke the v1.0.5-maint branch because VIR_STRDUP() didn't exist in the v1.0.5 release so the resulting build is missing that symbol. This patch is only for the v1.0.5-maint branch. --- src/qemu/qemu_migration.c | 2 +- 1 file changed, 1 insertion(+)

[libvirt] [PATCH v3 3/4] qemu: drop disk with 'optional' startupPolicy if it is not present

2013-06-09 Thread Guannan Ren
Go through disks of guest, if one disk doesn't exist or its backing chain is broken, with 'optional' startupPolicy, for CDROM and Floppy we only discard its source path definition in xml, for disks we drop it from disk list and free it. Originally, for these disks without startupPolicy attribute, l

[libvirt] [PATCH v3 4/4] security: restore DAC for every disk file in disk chain

2013-06-09 Thread Guannan Ren
--- src/security/security_dac.c | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/security/security_dac.c b/src/security/security_dac.c index b8d1a92..7a6f9c9 100644 --- a/src/security/security_dac.c +++ b/src/security/security_dac.c @@ -335,6 +335,16 @@ err:

[libvirt] [PATCH v3 1/4] conf: add startupPolicy attribute for harddisk

2013-06-09 Thread Guannan Ren
Add startupPolicy attribute policy for harddisk with type "file", "block" and "dir". The "network" type disk is still not supported. --- docs/schemas/domaincommon.rng | 6 ++ src/conf/domain_conf.c| 20 +--- 2 files changed, 19 insertions(+), 7 deletions(-) diff --git

[libvirt] [PATCH v3 2/4] storage: report error rather than warning if backing files doesn't exist

2013-06-09 Thread Guannan Ren
If one of backing files for disk source doesn't exist, the guest will not be able to find and use the disk even though the disk still exists in guest xml definition. So reporting an error make more sense. Adding virFileAccessibleAs() to check if the backing file described in disk meta exist in rea

[libvirt] [PATCH v3 0/4]Add startupPolicy attribute support for hard disks

2013-06-09 Thread Guannan Ren
v2 to v3: not only check disk source, startupPolicy should work if any backing file is missing. The commit 039a3283 break the limition of contiguous device boot orders, so I remove my previous patch about it. v1 to v2: added relax schema for disk of block and dir typ