Re: [libvirt] [Qemu-devel] [RFC 1/3] qemu-agent: add guest-network-set-interface command

2015-05-21 Thread Olga Krishtal
On 17/04/15 11:53, Chen Fan wrote: Nowadays, qemu has supported physical NIC hotplug for high network throughput. but it's in conflict with live migration feature, to keep network connectivity, we could to create bond device interface which provides a mechanism for enslaving multiple network

Re: [libvirt] [PATCH 1/2] devices: filesystems: added volume type

2016-06-23 Thread Olga Krishtal
On 23/06/16 15:31, Ján Tomko wrote: On Fri, Apr 08, 2016 at 07:39:23PM +0300, Olga Krishtal wrote: New type of is introduced. This patch allows to use volumes for storing the filesystem, that is accessed from the guest e.g. root directory for container. To take advantage of volumes

Re: [libvirt] [PATCH] storage: dir: adapts .wipeVol for ploop volumes

2016-06-17 Thread Olga Krishtal
On 21/05/16 11:58, Michal Privoznik wrote: On 16.05.2016 09:19, Olga Krishtal wrote: The modification of .volWipe callback wipes ploop volume using one of given wiping algorithm: dod, nnsa, etc. However, in case of ploop volume we need to reinitialize root.hds and DiskDescriptor.xml. Signed

Re: [libvirt] [PATCH rfc 0/2] devices: filesystem: type volume

2016-06-17 Thread Olga Krishtal
On 08/04/16 19:39, Olga Krishtal wrote: In-Reply-To: Patches introduce the new type of filesystem device. The first patch adds the possibility to use storage pool volumes as a backend for filesystem, that is accesed from the guest. Such possibility allows to use volumes for container

[libvirt] [PATCH v2] storage: dir: adapts .wipeVol for ploop volumes

2016-06-27 Thread Olga Krishtal
Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- src/storage/storage_backend.c | 68 +++ 1 file changed, 62 insertions(+), 6 deletions(-) diff --git a/src/storage/storage_backend.c b/src/storage/storage_backend.c index 5adf1fd..14b3a64

[libvirt] [PATCH] vz: fix build for virNetDev* changes

2016-06-27 Thread Olga Krishtal
Patch fixes vz build after changes in IP-related netdev functions(cf0568b0, fbc1843d). Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- src/vz/vz_sdk.c | 49 + 1 file changed, 25 insertions(+), 24 deletions(-) diff --git a/

[libvirt] [PATCH 0/1] vz: fix build for virNetDev* changes

2016-06-27 Thread Olga Krishtal
Although this changes have been reverted, it useful to have patch, that makes this changes in vz driver. -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

[libvirt] [PATCH 5/7] storage:dir: .resizeVol callback for ploop volume

2016-02-05 Thread Olga Krishtal
To change the size of ploop image file we use ploop resize cmd that takes 2 args: new size and path/to/DiskDescriptor.xml Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- src/storage/storage_backend.c| 28 src/storage/storage_backend.h

[libvirt] [PATCH 1/7] storage:dir: added ploop format in vol-create-as cmd

2016-02-05 Thread Olga Krishtal
In order to support ploop in storage pools we need separate volume type: VIR_STORAGE_VOL_PLOOP Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- include/libvirt/libvirt-storage.h | 2 +- src/conf/storage_conf.c | 2 +- src/storage/storage_backend_fs.c | 3 +++ tools

[libvirt] [PATCH 3/7] storage:dir: .deleteVol callback for ploop volume

2016-02-05 Thread Olga Krishtal
Deletes whole directory of a ploop volume. To delete ploop image it has to be unmounted. Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- src/storage/storage_backend.c| 6 ++ src/storage/storage_backend.h| 2 ++ src/storage/storage_backend_fs.c | 5 - 3 files c

[libvirt] [PATCH 4/7] storage:dir: adapts .uploadVol .dowloadVol for ploop volume

2016-02-05 Thread Olga Krishtal
to path/to/ploop/root.hds Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- src/storage/storage_backend.c | 27 --- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/src/storage/storage_backend.c b/src/storage/storage_backend.c index 1b4ffbc..2

[libvirt] [PATCH 2/7] storage:dir: .buildVol and .buildVolFrom callbacks for ploop

2016-02-05 Thread Olga Krishtal
of ploop image file and a corresponding DiskDescriptor.xml file. Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- src/storage/storage_backend.c| 90 src/storage/storage_backend.h| 8 src/storage/storage_backend_fs.c | 4 +- 3

[libvirt] [PATCH 6/7] storage:dir: .wipeVol is left unsupported for ploop volume

2016-02-05 Thread Olga Krishtal
Returns error in case of vol-wipe cmd for a ploop volume Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- src/storage/storage_backend.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/storage/storage_backend.c b/src/storage/storage_backend.c index 7a07cc8..30d5a5b

[libvirt] [PATCH 7/7] storage:dir: adapts .refreshVol .refreshPool for ploop volumes

2016-02-05 Thread Olga Krishtal
directory, we check the existance of this files. The capacity of a ploop volume is obtained via offset in the header file: https://openvz.org/Ploop/format Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- src/storage/storage_backend.c | 90 ++

[libvirt] [PATCH 0/7] storage:dir: ploop volumes support

2016-02-05 Thread Olga Krishtal
This series of patches is aimed to support ploop volumes directory storage pools. Ploop is a disk loopback block device, not unlike loop but with many features like dynamic resize, snapshots, backups etc. Container images will be stored in ploop volumes, that can be manipulated via virsh api.

[libvirt] [PATCH 7/7] storage:dir: adapts .refreshVol .refreshPool for ploop volumes

2016-02-08 Thread Olga Krishtal
directory, we check the existance of this files. The capacity of a ploop volume is obtained via offset in the header file: https://openvz.org/Ploop/format Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- src/storage/storage_backend.c | 90 ++

[libvirt] [PATCH 2/7] storage:dir: .buildVol and .buildVolFrom callbacks for ploop

2016-02-08 Thread Olga Krishtal
of ploop image file and a corresponding DiskDescriptor.xml file. Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- src/storage/storage_backend.c| 90 src/storage/storage_backend.h| 8 src/storage/storage_backend_fs.c | 2 + 3

[libvirt] [PATCH v2 0/7] storage:dir: ploop volumes support

2016-02-08 Thread Olga Krishtal
In-Reply-To: v2: - fixed memory leak - chenged the return value of all helper functions to 0/-1. Now check for success is smth like that: virPloop() < 0 - fixed some identation issues. -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

[libvirt] [PATCH 6/7] storage:dir: .wipeVol is left unsupported for ploop volume

2016-02-08 Thread Olga Krishtal
Returns error in case of vol-wipe cmd for a ploop volume Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- src/storage/storage_backend.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/storage/storage_backend.c b/src/storage/storage_backend.c index 38ea601..582bb5c

[libvirt] [PATCH 1/7] storage:dir: added ploop format in vol-create-as cmd

2016-02-08 Thread Olga Krishtal
In order to support ploop in storage pools we need separate volume type: VIR_STORAGE_VOL_PLOOP Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- include/libvirt/libvirt-storage.h | 2 +- src/conf/storage_conf.c | 2 +- src/storage/storage_backend_fs.c | 3 +++ tools

[libvirt] [PATCH 3/7] storage:dir: .deleteVol callback for ploop volume

2016-02-08 Thread Olga Krishtal
Deletes whole directory of a ploop volume. To delete ploop image it has to be unmounted. Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- src/storage/storage_backend.c| 6 ++ src/storage/storage_backend.h| 2 ++ src/storage/storage_backend_fs.c | 5 - 3 files c

[libvirt] [PATCH 5/7] storage:dir: .resizeVol callback for ploop volume

2016-02-08 Thread Olga Krishtal
To change the size of ploop image file we use ploop resize cmd that takes 2 args: new size and path/to/DiskDescriptor.xml Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- src/storage/storage_backend.c| 28 src/storage/storage_backend.h

[libvirt] [PATCH 4/7] storage:dir: adapts .uploadVol .dowloadVol for ploop volume

2016-02-08 Thread Olga Krishtal
to path/to/ploop/root.hds Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- src/storage/storage_backend.c | 25 +++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/src/storage/storage_backend.c b/src/storage/storage_backend.c index be57630..f

[libvirt] [PATCH 3/6] storage:dir: adapts .uploadVol .dowloadVol for ploop volume

2016-02-09 Thread Olga Krishtal
to path/to/ploop/root.hds Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- src/storage/storage_backend.c | 26 -- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/src/storage/storage_backend.c b/src/storage/storage_backend.c index 34c9d40..c

[libvirt] [PATCH 2/6] storage:dir: .deleteVol callback for ploop volume

2016-02-09 Thread Olga Krishtal
Deletes whole directory of a ploop volume. To delete ploop image it has to be unmounted. Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- src/storage/storage_backend.c| 6 ++ src/storage/storage_backend.h| 2 ++ src/storage/storage_backend_fs.c | 5 + 3 files c

[libvirt] [PATCH 4/6] storage:dir: .resizeVol callback for ploop volume

2016-02-09 Thread Olga Krishtal
To change the size of ploop image file we use ploop resize cmd that takes 2 args: new size and path/to/DiskDescriptor.xml Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- src/storage/storage_backend.c| 28 src/storage/storage_backend.h

[libvirt] [PATCH 5/6] storage:dir: .wipeVol is left unsupported for ploop volume

2016-02-09 Thread Olga Krishtal
Returns error in case of vol-wipe cmd for a ploop volume Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- src/storage/storage_backend.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/storage/storage_backend.c b/src/storage/storage_backend.c index fb4d1b9..21dd96d

[libvirt] [PATCH 6/6] storage:dir: adapts .refreshVol .refreshPool for ploop volumes

2016-02-09 Thread Olga Krishtal
directory, we check the existance of this files. The capacity of a ploop volume is obtained via offset in the header file: https://openvz.org/Ploop/format Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- src/storage/storage_backend.c | 90 ++

[libvirt] [PATCH 1/6] storage:dir: .buildVol and .buildVolFrom callbacks for ploop

2016-02-09 Thread Olga Krishtal
of ploop image file and a corresponding DiskDescriptor.xml file. Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- src/storage/storage_backend.c| 101 ++- src/storage/storage_backend.h| 8 src/storage/storage_backend_fs.c |

[libvirt] [PATCH v3 0/6] storage:dir: ploop volumes support

2016-02-09 Thread Olga Krishtal
v3: - no VIR_STORAGE_VOL_PLOOP type any more - adapted all patches according to previous change - fixed comments v2: - fixed memory leak - chenged the return value of all helper functions to 0/-1. Now check for success is smth like that: virPloop() < 0 - fixed some identation issues. --

Re: [libvirt] [PATCH 2/6] storage:dir: .deleteVol callback for ploop volume

2016-02-10 Thread Olga Krishtal
On 10/02/16 12:43, Nikolay Shirokovskiy wrote: On 09.02.2016 16:52, Olga Krishtal wrote: Deletes whole directory of a ploop volume. To delete ploop image it has to be unmounted. Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- src/storage/storage_backend.c| 6 ++

[libvirt] [PATCH rfc v4 0/6] storage:dir: ploop volumes support

2016-02-17 Thread Olga Krishtal
v4: - fixed identation issues. - in case of .uploadVol, DiskDescriptor.xml is restored. - added check of ploops'accessibility v3: - no VIR_STORAGE_VOL_PLOOP type any more - adapted all patches according to previous change - fixed comments v2: - fixed memory leak - chenged the return value of

[libvirt] [PATCH 1/6] storage:dir: .buildVol and .buildVolFrom callbacks for ploop

2016-02-17 Thread Olga Krishtal
of ploop image file and a corresponding DiskDescriptor.xml file. Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- src/storage/storage_backend.c| 100 ++- src/storage/storage_backend.h| 8 src/storage/storage_backend_fs.c |

[libvirt] [PATCH] Delete

2016-02-17 Thread Olga Krishtal
Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- src/storage/storage_backend.c| 3 +-- src/storage/storage_backend.h| 3 +-- src/storage/storage_backend_fs.c | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/storage/storage_backend.c b/src/s

[libvirt] [PATCH 6/6] storage:dir: adapts .refreshVol .refreshPool for ploop volumes

2016-02-17 Thread Olga Krishtal
directory, we check the existance of this files. The capacity of a ploop volume is obtained via offset in the header file: https://openvz.org/Ploop/format Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- src/storage/storage_backend.c | 92 ++

[libvirt] [PATCH 4/6] storage:dir: .resizeVol callback for ploop volume

2016-02-17 Thread Olga Krishtal
To change the size of ploop image file we use ploop resize cmd that takes 2 args: new size and path/to/DiskDescriptor.xml Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- src/storage/storage_backend.c| 33 + src/storage/storage_backend.h

[libvirt] [PATCH 5/6] storage:dir: .wipeVol is left unsupported for ploop volume

2016-02-17 Thread Olga Krishtal
Returns error in case of vol-wipe cmd for a ploop volume Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- src/storage/storage_backend.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/storage/storage_backend.c b/src/storage/storage_backend.c index 18d414c..60e6bd0

[libvirt] [PATCH 2/6] storage:dir: .deleteVol callback for ploop volume

2016-02-17 Thread Olga Krishtal
Deletes whole directory of a ploop volume. To delete ploop image it has to be unmounted. Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- src/storage/storage_backend.c| 5 + src/storage/storage_backend.h| 1 + src/storage/storage_backend_fs.c | 5 + 3 files chang

[libvirt] [PATCH 3/6] storage:dir: adapts .uploadVol .dowloadVol for ploop volume

2016-02-17 Thread Olga Krishtal
to path/to/ploop/root.hds In case of .uploadVol, we have to additionaly update DiskDescriptor.xml Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- src/storage/storage_backend.c | 66 +-- 1 file changed, 64 insertions(+), 2 deletions(-) diff

Re: [libvirt] [PATCH] Delete

2016-02-17 Thread Olga Krishtal
On 17/02/16 14:39, Olga Krishtal wrote: Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- src/storage/storage_backend.c| 3 +-- src/storage/storage_backend.h| 3 +-- src/storage/storage_backend_fs.c | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git

Re: [libvirt] [PATCH 4/6] storage:dir: .resizeVol callback for ploop volume

2016-02-18 Thread Olga Krishtal
On 18/02/16 11:15, Nikolay Shirokovskiy wrote: On 17.02.2016 14:40, Olga Krishtal wrote: To change the size of ploop image file we use ploop resize cmd that takes 2 args: new size and path/to/DiskDescriptor.xml Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- src/s

Re: [libvirt] [PATCH 3/6] storage:dir: adapts .uploadVol .dowloadVol for ploop volume

2016-02-18 Thread Olga Krishtal
On 18/02/16 16:57, Ján Tomko wrote: On Wed, Feb 17, 2016 at 02:40:02PM +0300, Olga Krishtal wrote: In case of ploop volume, target path of the volume is the path to the directory that contains image file named root.hds and DiskDescriptor.xml. While using uploadVol and downloadVol callbacks we

Re: [libvirt] [PATCH 6/6] storage:dir: adapts .refreshVol .refreshPool for ploop volumes

2016-02-18 Thread Olga Krishtal
On 18/02/16 17:04, Maxim Nestratov wrote: 18.02.2016 16:46, Ján Tomko пишет: On Wed, Feb 17, 2016 at 02:40:05PM +0300, Olga Krishtal wrote: To update information about ploop volumes inside the a single pool we need to be sure that it is the ploop directory and not some other directory. Ploop

Re: [libvirt] [PATCH 6/6] storage:dir: adapts .refreshVol .refreshPool for ploop volumes

2016-02-18 Thread Olga Krishtal
On 18/02/16 18:17, Ján Tomko wrote: On Thu, Feb 18, 2016 at 05:04:16PM +0300, Maxim Nestratov wrote: 18.02.2016 16:46, Ján Tomko пишет: On Wed, Feb 17, 2016 at 02:40:05PM +0300, Olga Krishtal wrote: To update information about ploop volumes inside the a single pool we need to be sure

Re: [libvirt] [PATCH 6/6] storage:dir: adapts .refreshVol .refreshPool for ploop volumes

2016-02-18 Thread Olga Krishtal
​ On 18/02/16 18:17, Ján Tomko wrote: On Thu, Feb 18, 2016 at 05:04:16PM +0300, Maxim Nestratov wrote: 18.02.2016 16:46, Ján Tomko пишет: On Wed, Feb 17, 2016 at 02:40:05PM +0300, Olga Krishtal wrote: To update information about ploop volumes inside the a single pool we need to be sure

[libvirt] [PATCH v5 0/6] storage:dir: ploop volumes support

2016-03-14 Thread Olga Krishtal
This series of patches introduces the support of ploop volumes in storage pools (dir, fs, etc). Ploop volume is a disk loopback block device consists of root.hds (it is the image file) and DiskDescriptor.xml: https://openvz.org/Ploop/format. Due to this fact it can't be treated as file or any

[libvirt] [PATCH 2/7] storage:dir: .buildVol and .buildVolFrom callbacks for ploop

2016-03-14 Thread Olga Krishtal
-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- src/storage/storage_backend.c| 78 src/storage/storage_backend.h| 8 + src/storage/storage_backend_fs.c | 2 ++ 3 files changed, 88 insertions(+) diff --git a/src/storage/storage_backe

[libvirt] [PATCH 7/7] storage:dir: adapts .uploadVol .dowloadVol for ploop volume

2016-03-14 Thread Olga Krishtal
images do not have snapshots. Otherwise operation fails. Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- src/storage/storage_backend.c | 99 +-- 1 file changed, 96 insertions(+), 3 deletions(-) diff --git a/src/storage/storage_backend.c

[libvirt] [PATCH 4/7] storage:dir: .resizeVol callback for ploop volume

2016-03-14 Thread Olga Krishtal
Changes the size of given ploop volume via ploop resize tool. Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- src/storage/storage_backend.c| 25 + src/storage/storage_backend.h| 2 ++ src/storage/storage_backend_fs.c | 2 ++ 3 files chang

[libvirt] [PATCH 5/7] storage:dir: .wipeVol is left unsupported for ploop volume

2016-03-14 Thread Olga Krishtal
Returns error in case of vol-wipe cmd for a ploop volume Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- src/storage/storage_backend.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/storage/storage_backend.c b/src/storage/storage_backend.c index fddec3c..8b936ae

[libvirt] [PATCH 3/7] storage:dir: .deleteVol callback for ploop volume

2016-03-14 Thread Olga Krishtal
Recursively deletes whole directory of a ploop volume. To delete ploop image it has to be unmounted. Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- src/storage/storage_backend_fs.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/storage/storage_backend_fs.c b/src/s

[libvirt] [PATCH 1/7] storage: added ploop volume type

2016-03-14 Thread Olga Krishtal
files nor a directory. This patch introduces new volume type - ploop. This volume type is used by ploop volume's exclusively. Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- include/libvirt/libvirt-storage.h | 1 + src/conf/storage_conf.c | 3 ++- src/s

[libvirt] [PATCH 6/7] storage:dir: adapts .refreshVol .refreshPool for ploop volumes

2016-03-14 Thread Olga Krishtal
problems that might occure, when we upload some other volume type from ploop source. Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- src/storage/storage_backend.c| 62 -- src/storage/storage_backend.h| 5 src/storage/storage_backend_fs.

Re: [libvirt] [PATCH 6/7] storage:dir: adapts .refreshVol .refreshPool for ploop volumes

2016-04-06 Thread Olga Krishtal
On 05/04/16 18:01, Ján Tomko wrote: On Mon, Mar 14, 2016 at 07:00:39PM +0300, Olga Krishtal wrote: Refreshes meta-information such as allocation, capacity, format, etc. Ploop volumes differ from other volume types. Path to volume is the path to directory with image file root.hds

[libvirt] [PATCH 1/2] devices: filesystems: added volume type

2016-04-08 Thread Olga Krishtal
New type of is introduced. This patch allows to use volumes for storing the filesystem, that is accessed from the guest e.g. root directory for container. To take advantage of volumes as a backend of filesystem volume and pool names should be specified: Signed-off-by: Olga Krishtal <okr

[libvirt] [PATCH rfc 0/2] devices: filesystem: type volume

2016-04-08 Thread Olga Krishtal
In-Reply-To: Patches introduce the new type of filesystem device. The first patch adds the possibility to use storage pool volumes as a backend for filesystem, that is accesed from the guest. Such possibility allows to use volumes for container as a source of root directory. Usage:

[libvirt] [PATCH 2/2] vz: support filesystem type volume

2016-04-08 Thread Olga Krishtal
Vz containers are able to use ploop volumes from storage pools to work upon. To use filesystem type volume, pool name and volume name should be specifaed in Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- src/storage/storage_driver.c | 3 + src/vz/vz_sdk.c

[libvirt] [PATCH 4/7] storage:dir: .resizeVol callback for ploop volume

2016-04-11 Thread Olga Krishtal
Changes the size of given ploop volume via ploop resize tool. Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- src/storage/storage_backend.c| 25 + src/storage/storage_backend.h| 2 ++ src/storage/storage_backend_fs.c | 2 ++ 3 files chang

[libvirt] [PATCH 6/7] storage:dir: adapts .refreshVol .refreshPool for ploop volumes

2016-04-11 Thread Olga Krishtal
problems that might occure, when we upload some other volume type from ploop source. Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- src/storage/storage_backend.c| 62 ++-- src/storage/storage_backend.h| 5 src/storage/storage_backend_fs.

[libvirt] [PATCH v6 0/7] storage:dir: ploop volumes support

2016-04-11 Thread Olga Krishtal
This series of patches introduces the support of ploop volumes in storage pools (dir, fs, etc). Ploop volume is a disk loopback block device consists of root.hds (it is the image file) and DiskDescriptor.xml: https://openvz.org/Ploop/format. Due to this fact it can't be treated as file or any

[libvirt] [PATCH 5/7] storage:dir: .wipeVol is left unsupported for ploop volume

2016-04-11 Thread Olga Krishtal
Returns error in case of vol-wipe cmd for a ploop volume Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- src/storage/storage_backend.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/storage/storage_backend.c b/src/storage/storage_backend.c index fddec3c..8b936ae

[libvirt] [PATCH 3/7] storage:dir: .deleteVol callback for ploop volume

2016-04-11 Thread Olga Krishtal
Recursively deletes whole directory of a ploop volume. To delete ploop image it has to be unmounted. Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- src/storage/storage_backend_fs.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/storage/storage_backend_fs.c b/src/s

[libvirt] [PATCH 1/7] storage: added ploop volume type

2016-04-11 Thread Olga Krishtal
files nor a directory. This patch introduces new volume type - ploop. This volume type is used by ploop volume's exclusively. Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- include/libvirt/libvirt-storage.h | 1 + src/conf/storage_conf.c | 3 ++- src/s

[libvirt] [PATCH 7/7] storage:dir: adapts .uploadVol .dowloadVol for ploop volume

2016-04-11 Thread Olga Krishtal
images do not have snapshots. Otherwise operation fails. Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- src/storage/storage_backend.c | 99 +-- src/storage/storage_driver.c | 51 +- 2 files changed, 146 insertions

[libvirt] [PATCH 2/7] storage:dir: .buildVol and .buildVolFrom callbacks for ploop

2016-04-11 Thread Olga Krishtal
-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- src/storage/storage_backend.c| 78 src/storage/storage_backend.h| 8 + src/storage/storage_backend_fs.c | 2 ++ 3 files changed, 88 insertions(+) diff --git a/src/storage/storage_backe

Re: [libvirt] [PATCH 6/7] storage:dir: adapts .refreshVol .refreshPool for ploop volumes

2016-04-06 Thread Olga Krishtal
On 06/04/16 16:07, Ján Tomko wrote: On Wed, Apr 06, 2016 at 03:57:17PM +0300, Olga Krishtal wrote: On 06/04/16 15:11, Ján Tomko wrote: On Wed, Apr 06, 2016 at 11:18:22AM +0300, Olga Krishtal wrote: The thing is that if we changed the size, the content of root.hds and had left the old

Re: [libvirt] [PATCH 6/7] storage:dir: adapts .refreshVol .refreshPool for ploop volumes

2016-04-06 Thread Olga Krishtal
On 06/04/16 15:11, Ján Tomko wrote: On Wed, Apr 06, 2016 at 11:18:22AM +0300, Olga Krishtal wrote: On 05/04/16 18:01, Ján Tomko wrote: On Mon, Mar 14, 2016 at 07:00:39PM +0300, Olga Krishtal wrote: Refreshes meta-information such as allocation, capacity, format, etc. Ploop volumes differ from

[libvirt] RFC filesystem pool proposal description.

2016-04-28 Thread Olga Krishtal
In this proposal description we would like to introduce a separate pool type:fspool. Fspool provides and manages filesystems. Below are listed possible examples of fspool, depending on source type: volume, directory or network. Volume fspool uses storage pool volume to reside upon. fspool

[libvirt] [PATCH rfc 0/1] storage: vzstorage storage pool

2016-05-16 Thread Olga Krishtal
In-Reply-To: This is first draft, that supports vzstorage in storage pools.i Virtuozzo Storage is a fault-tolerant distributed storage system, optimized for virtualization workloads. Vzstorage pool supports the same volume formats as directory, nfs, etc. In terms of volume management - there is

[libvirt] [PATCH] storage: vz storage pool support

2016-05-16 Thread Olga Krishtal
information about vzstorage can be found here: https://openvz.org/Virtuozzo_Storage It supports the same volume formats as directory, nfs, etc. Default format is ploop. Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- configure.ac | 28 + docs/schemas/storagepo

[libvirt] [PATCH] storage: dir: adapts .wipeVol for ploop volumes

2016-05-16 Thread Olga Krishtal
The modification of .volWipe callback wipes ploop volume using one of given wiping algorithm: dod, nnsa, etc. However, in case of ploop volume we need to reinitialize root.hds and DiskDescriptor.xml. Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- src/storage/storage_backend.

Re: [libvirt] RFC filesystem pool proposal description.

2016-05-04 Thread Olga Krishtal
On 02/05/16 22:12, Vasiliy Tolstov wrote: 2016-04-29 19:12 GMT+03:00 Maxim Nestratov : I wonder, if my reply clarify the original message or it's still unclear and it's better to step back more and describe the problem in more details? Yes, may be i'm interesting in

[libvirt] [PATCH v3 4/4] vz: support filesystem type volume

2016-07-14 Thread Olga Krishtal
/vol_name and can be easily obtained via PrlVmDevHd_GetStorageURL sdk call. The only shorcoming: if storage pool is moved somewhere the ct should be redefined in order to refresh the information aboot path to root.hdd Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- src/s

[libvirt] [PATCH v3 3/4] vz: refactoring of prlsdkCreateCt

2016-07-14 Thread Olga Krishtal
We do not need to check domainf fs type there, because it is done in prlsdkCheckUnsupportedParams. Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- src/vz/vz_sdk.c | 25 +++-- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/src/vz/vz_sdk.c b/

[libvirt] [PATCH v3 1/4] filesystem: adds possibility to use storage pool as fs source

2016-07-14 Thread Olga Krishtal
Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- src/conf/domain_audit.c| 4 ++-- src/conf/domain_conf.c | 34 --- src/conf/domain_conf.h | 3 ++- src/libvirt_private.syms | 1 + src/lxc/lxc_cgroup.c | 2 +- src/lxc/lxc_conta

[libvirt] [PATCH v3 2/4] devices: filesystems: added volume type

2016-07-14 Thread Olga Krishtal
New type of is introduced. This patch allows to use volumes for storing the filesystem, that is accessed from the guest e.g. root directory for container. To take advantage of volumes as a backend of filesystem volume and pool names should be specified: Signed-off-by: Olga Krishtal <okr

[libvirt] [PATCH v3 0/4] devices: filesystem: type volume

2016-07-14 Thread Olga Krishtal
The patches introduce new filesystem type volume: This makes possible to use storage volumes as the source for disks. v2: -split patches -rebased v3: - fixed check for template fs. - refactoring Olga Krishtal (4): filesystem: adds possibility to use storage pool as fs source

[libvirt] [PATCH v2 0/1] storage: vstorage support

2016-07-14 Thread Olga Krishtal
vstorage - simplified findPoolSources Olga Krishtal (1): storage: vz storage pool support configure.ac | 28 ++ docs/schemas/storagepool.rng | 13 + include/libvirt/libvirt-storage.h | 1 + src/conf/storage_conf.c | 16 +- src/conf

[libvirt] [PATCH v2] storage: vz storage pool support

2016-07-14 Thread Olga Krishtal
information about vzstorage can be found here: https://openvz.org/Virtuozzo_Storage It supports the same volume formats as directory, nfs, etc. Default format is raw. Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- configure.ac | 31 +++ docs/s

Re: [libvirt] [PATCH 1/2] storage: Don't delete Ploop volumes twice

2016-07-15 Thread Olga Krishtal
On 15/07/16 11:37, Martin Kletzander wrote: On Fri, Jul 15, 2016 at 09:41:11AM +0200, Ján Tomko wrote: On Thu, Jul 14, 2016 at 02:27:40PM +0200, Martin Kletzander wrote: When reinitializing Ploop volumes we also went through the rutine of the normal wipe, effectively removing the root.hds

[libvirt] [PATCH 4/4] vz: support filesystem type volume

2016-07-06 Thread Olga Krishtal
/vol_name and can be easily obtained via PrlVmDevHd_GetStorageURL sdk call. The only shorcoming: if storage pool is moved somewhere the ct should be redefined in order to refresh the information aboot path to root.hdd Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- src/s

[libvirt] [PATCH v2 0/4] devices: filesystem: type volume

2016-07-06 Thread Olga Krishtal
The patches introduce new filesystem type volume: This makes possible to use storage volumes as the source for disks. v2: -split patches -rebased Olga Krishtal (4): filesystem: adds possibility to use storage pool as fs source devices: filesystems: added volume type vz

[libvirt] [PATCH 3/4] vz: refactoring of prlsdkCreateCt

2016-07-06 Thread Olga Krishtal
We do not need to check domainf fs type there, because it is done in prlsdkCheckUnsupportedParams. Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- src/vz/vz_sdk.c | 21 ++--- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/src/vz/vz_sdk.c b/

[libvirt] [PATCH 4/4] vz: support filesystem type volume

2016-07-06 Thread Olga Krishtal
/vol_name and can be easily obtained via PrlVmDevHd_GetStorageURL sdk call. The only shorcoming: if storage pool is moved somewhere the ct should be redefined in order to refresh the information aboot path to root.hdd Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- src/s

[libvirt] [PATCH 2/4] devices: filesystems: added volume type

2016-07-06 Thread Olga Krishtal
New type of is introduced. This patch allows to use volumes for storing the filesystem, that is accessed from the guest e.g. root directory for container. To take advantage of volumes as a backend of filesystem volume and pool names should be specified: Signed-off-by: Olga Krishtal <okr

[libvirt] [PATCH 2/4] devices: filesystems: added volume type

2016-07-06 Thread Olga Krishtal
New type of is introduced. This patch allows to use volumes for storing the filesystem, that is accessed from the guest e.g. root directory for container. To take advantage of volumes as a backend of filesystem volume and pool names should be specified: Signed-off-by: Olga Krishtal <okr

[libvirt] [PATCH 1/4] filesystem: adds possibility to use storage pool as fs source

2016-07-06 Thread Olga Krishtal
Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- src/conf/domain_audit.c| 4 ++-- src/conf/domain_conf.c | 34 --- src/conf/domain_conf.h | 3 ++- src/libvirt_private.syms | 1 + src/lxc/lxc_cgroup.c | 2 +- src/lxc/lxc_conta

[libvirt] [PATCH 1/4] filesystem: adds possibility to use storage pool as fs source

2016-07-06 Thread Olga Krishtal
Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- src/conf/domain_audit.c| 4 ++-- src/conf/domain_conf.c | 34 --- src/conf/domain_conf.h | 3 ++- src/libvirt_private.syms | 1 + src/lxc/lxc_cgroup.c | 2 +- src/lxc/lxc_conta

[libvirt] [PATCH v2 0/4] devices: filesystem: type volume

2016-07-06 Thread Olga Krishtal
The patches introduce new filesystem type volume: This makes possible to use storage volumes as the source for disks. v2: -split patches -rebased Olga Krishtal (4): filesystem: adds possibility to use storage pool as fs source devices: filesystems: added volume type vz

[libvirt] [PATCH 3/4] vz: refactoring of prlsdkCreateCt

2016-07-06 Thread Olga Krishtal
We do not need to check domainf fs type there, because it is done in prlsdkCheckUnsupportedParams. Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- src/vz/vz_sdk.c | 21 ++--- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/src/vz/vz_sdk.c b/

Re: [libvirt] [PATCH 2/2] vz: support filesystem type volume

2016-06-29 Thread Olga Krishtal
On 23/06/16 16:56, Nikolay Shirokovskiy wrote: On 08.04.2016 19:39, Olga Krishtal wrote: Vz containers are able to use ploop volumes from storage pools to work upon. To use filesystem type volume, pool name and volume name should be specifaed in Signed-off-by: Olga Krishtal <okr

[libvirt] [PATCH] vz: fixed null-pointer dereference in applying graphic params

2016-06-29 Thread Olga Krishtal
Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- src/vz/vz_sdk.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/vz/vz_sdk.c b/src/vz/vz_sdk.c index f4c2b3b..903440b 100644 --- a/src/vz/vz_sdk.c +++ b/src/vz/vz_sdk.c @@ -2790,6 +2790,7 @@ static int prlsdkApplyGraphics

[libvirt] [PATCH] vz: fix

2016-06-29 Thread Olga Krishtal
Please, ignore previous patch. Olga Krishtal (1): vz: fixed null-pointer dereference in applying graphic params src/vz/vz_sdk.c | 1 + 1 file changed, 1 insertion(+) -- 1.8.3.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

[libvirt] [PATCH] vz: fixed null-pointer dereference in applying graphic params

2016-06-29 Thread Olga Krishtal
Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- src/vz/vz_sdk.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/vz/vz_sdk.c b/src/vz/vz_sdk.c index f4c2b3b..848bfb9 100644 --- a/src/vz/vz_sdk.c +++ b/src/vz/vz_sdk.c @@ -2790,6 +2790,7 @@ static int prlsdkApplyGraphics

Re: [libvirt] [PATCH 3/3] storage: Create common file/dir volume backend helpers

2017-01-24 Thread Olga Krishtal
On 21/01/17 20:23, John Ferlan wrote: Move all the volume functions to storage_util to create local/common helpers using the same naming syntax as the existing upload, download, and wipe virStorageBackend*Local API's. In the process of doing so, found more API's that can now become local to

Re: [libvirt] [PATCH 1/3] storage: Move the virStorageBackendFileSystem{Start|Stop} API's

2017-01-24 Thread Olga Krishtal
On 21/01/17 20:23, John Ferlan wrote: Just moving code around with minor adjustment to have the Stop code combine with the Unmount code since all the Stop code did was call the Unmount code. Signed-off-by: John Ferlan --- src/storage/storage_backend.c| 1 +

Re: [libvirt] [PATCH 2/3] storage: Create common file/dir pool backend helpers

2017-01-24 Thread Olga Krishtal
On 21/01/17 20:23, John Ferlan wrote: Move some pool functions to storage_util to create local/common helpers using the same naming syntax as the existing upload, download, and wipe virStorageBackend*Local API's. In the process of doing so, found a few API's that can now become local to

Re: [libvirt] Refactoring of storage pool

2017-01-26 Thread Olga Krishtal
On 26/01/17 17:49, Daniel P. Berrange wrote: On Wed, Jan 25, 2017 at 08:02:30PM +0300, Olga Krishtal wrote: Hi everyone! Half a year ago we started discussion about filesystem pools: https://www.redhat.com/archives/libvir-list/2016-April/msg01941.html https://www.redhat.com/archives/libvir-list

[libvirt] [PATCH] vstorage: fix build

2017-01-26 Thread Olga Krishtal
Fixed errors when we build libvirt with --with-storage-vstorage key Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- src/storage/storage_backend_vstorage.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/storage/storage_backend_vstorage.c b/src/s

Re: [libvirt] [PATCH v2 0/5] storage: Virtuozzo storage backend for storage pool

2017-01-26 Thread Olga Krishtal
On 26/01/17 19:24, John Ferlan wrote: On 01/17/2017 09:10 AM, Olga Krishtal wrote: This series of patches support pool and volume management within Virtuozzo Storage. Virtuozzo Storage is a highly-available distributed software defined storage with built-in replication and disaster recovery

  1   2   >