Re: [libvirt] [PATCH 2/2] tests: storage: Fix storage xml2xml test for vstorage pool

2017-01-27 Thread Olga Krishtal
On 27/01/17 12:45, Peter Krempa wrote: The input and output were the same, but the output file did not correspond to what libvirt would output. --- tests/storagepoolxml2xmlout/pool-vstorage.xml | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git

Re: [libvirt] [PATCH 1/2] configure: Fix copy-paste error in vstorage backend check

2017-01-27 Thread Olga Krishtal
On 27/01/17 12:45, Peter Krempa wrote: The 'fs' backend m4 code was copied, but one of the condition were not changed which resulted into: configure:Gluster: yes configure:ZFS: yes configure: Virtuozzo storage: check Make the code turn on the virtuozzo driver automatically if the

Re: [libvirt] [PATCH v2 1/5] storage: adds with_storage_vstorage buils option

2017-01-27 Thread Olga Krishtal
On 27/01/17 12:37, Peter Krempa wrote: On Fri, Jan 27, 2017 at 12:31:03 +0300, Olga Krishtal wrote: On 27/01/17 12:09, Peter Krempa wrote: On Tue, Jan 17, 2017 at 17:10:55 +0300, Olga Krishtal wrote: This patch only adds --with-storage-vstorage build option. In order to use vstorage

Re: [libvirt] [PATCH v2 1/5] storage: adds with_storage_vstorage buils option

2017-01-27 Thread Olga Krishtal
On 27/01/17 12:09, Peter Krempa wrote: On Tue, Jan 17, 2017 at 17:10:55 +0300, Olga Krishtal wrote: This patch only adds --with-storage-vstorage build option. In order to use vstorage as a backend for storage pool vstorage tools should be installed. Signed-off-by: Olga Krishtal <okr

[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

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] Refactoring of storage pool

2017-01-25 Thread Olga Krishtal
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/2016-May/msg00208.html https://www.redhat.com/archives/libvir-list/2016-September/msg00463.html At the end

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] [PATCH v2 5/5] storage: vstorage pool documentation and simple test

2017-01-19 Thread Olga Krishtal
On 19/01/17 00:04, John Ferlan wrote: On 01/17/2017 09:10 AM, Olga Krishtal wrote: Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- docs/formatstorage.html.in| 7 --- docs/schemas/storagepool.rng | 21

Re: [libvirt] [PATCH v2 2/5] storage: vstorage empty backend

2017-01-19 Thread Olga Krishtal
On 19/01/17 00:00, John Ferlan wrote: On 01/17/2017 09:10 AM, Olga Krishtal wrote: Added general defenitions for vstorage pool backend definitions Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- include/libvirt/libvirt-storage.h | 1 + po/POTFI

Re: [libvirt] [PATCH v2 3/5] storage: vstorage pool operations

2017-01-19 Thread Olga Krishtal
On 19/01/17 00:04, John Ferlan wrote: On 01/17/2017 09:10 AM, Olga Krishtal wrote: Added create/define/etc pool operations for vstorage backend. The vstorage storage pool looks like netfs ones. Due to this some of pool/volume functions were taken with no changes: refresh pool function

Re: [libvirt] [PATCH v2 4/5] storage: added vstorage pool backend volume functions

2017-01-19 Thread Olga Krishtal
On 19/01/17 00:04, John Ferlan wrote: On 01/17/2017 09:10 AM, Olga Krishtal wrote: Vstorage operates with volumes the same way as directory pool and netfs pool. We use the same functions. Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- src/storage/storage_backend_vstorage.c

[libvirt] [PATCH v2 4/5] storage: added vstorage pool backend volume functions

2017-01-17 Thread Olga Krishtal
Vstorage operates with volumes the same way as directory pool and netfs pool. We use the same functions. Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- src/storage/storage_backend_vstorage.c | 342 + 1 file changed, 342 insertions(+) diff --git

[libvirt] [PATCH v2 3/5] storage: vstorage pool operations

2017-01-17 Thread Olga Krishtal
Added create/define/etc pool operations for vstorage backend. The vstorage storage pool looks like netfs ones. Due to this some of pool/volume functions were taken with no changes: refresh pool function. Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- src/s

[libvirt] [PATCH v2 2/5] storage: vstorage empty backend

2017-01-17 Thread Olga Krishtal
Added general defenitions for vstorage pool backend Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- include/libvirt/libvirt-storage.h | 1 + po/POTFILES.in | 1 + src/Makefile.am| 9 + src/conf/storage_

[libvirt] [PATCH v2 1/5] storage: adds with_storage_vstorage buils option

2017-01-17 Thread Olga Krishtal
This patch only adds --with-storage-vstorage build option. In order to use vstorage as a backend for storage pool vstorage tools should be installed. Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- configure.ac| 4 +++ m4/virt-storage-vstorage.m

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

2017-01-17 Thread Olga Krishtal
ozzo storage are in separate file - added possibility to mout cluster for pool for ures/with specific perms. - added documetation Olga Krishtal (5): storage: adds with_storage_vstorage buils option storage: vstorage empty backend storage: vstorage pool operations storage: added vstorage pool ba

[libvirt] [PATCH v2 5/5] storage: vstorage pool documentation and simple test

2017-01-17 Thread Olga Krishtal
Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- docs/formatstorage.html.in| 7 --- docs/schemas/storagepool.rng | 21 docs/storage.html.in | 28 ++-

Re: [libvirt] [PATCH RFC v3 01/15] storage pools: refactoring of basic structs

2016-12-21 Thread Olga Krishtal
On 20/12/16 20:18, John Ferlan wrote: On 12/15/2016 12:16 PM, Olga Krishtal wrote: Hi, John. I needed some time to think over everything that you have written. Thanks a lot. Yeah - I got too wordy, but this type of change caused me to think about other possible consumers too. With all

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

2016-12-21 Thread Olga Krishtal
On 20/12/16 20:55, John Ferlan wrote: On 12/16/2016 06:14 AM, Olga Krishtal wrote: On 08/12/16 22:56, John Ferlan wrote: Compare that to NFS, which uses mount which is included in well every distro I can think of. That's a big difference. Also let's face it, NFS has been the essential de

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

2016-12-16 Thread Olga Krishtal
On 08/12/16 22:56, John Ferlan wrote: Compare that to NFS, which uses mount which is included in well every distro I can think of. That's a big difference. Also let's face it, NFS has been the essential de facto goto tool to access remote storage for a long time. Personally, I'd rather see the

Re: [libvirt] [PATCH RFC v3 01/15] storage pools: refactoring of basic structs

2016-12-15 Thread Olga Krishtal
Hi, John. I needed some time to think over everything that you have written. Thanks a lot. With all this new information we have more freedom for changes and refactoring. I dig through storage_conf.h file once with all ideas you have and tried to use them. It would be easier for me if we agree

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

2016-12-08 Thread Olga Krishtal
On 08/12/16 19:39, Olga Krishtal wrote: Hi all, I see here a lot of discussions and explanations about virtuozzo storage. So, I will just add some information. Initially I have planned, that admin or user has properly configured vstorage somewhere over the network. (It can be done via DNS

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

2016-12-08 Thread Olga Krishtal
Hi all, I see here a lot of discussions and explanations about virtuozzo storage. So, I will just add some information. Initially I have planned, that admin or user has properly configured vstorage somewhere over the network. (It can be done via DNS records or zeroconf.) At the host where pool

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

2016-12-07 Thread Olga Krishtal
On 06/12/16 22:26, John Ferlan wrote: On 12/06/2016 06:10 AM, Olga Krishtal wrote: On 06/12/16 02:59, John Ferlan wrote: On 12/02/2016 12:09 PM, Olga Krishtal wrote: On 20/09/16 23:30, John Ferlan wrote: On 07/14/2016 01:13 PM, Olga Krishtal wrote: This patch supports pool and volume

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

2016-12-06 Thread Olga Krishtal
On 06/12/16 02:59, John Ferlan wrote: On 12/02/2016 12:09 PM, Olga Krishtal wrote: On 20/09/16 23:30, John Ferlan wrote: On 07/14/2016 01:13 PM, Olga Krishtal wrote: This patch supports pool and volume management within Virtuozzo Storage. Virtuozzo Storage is a highly-available distributed

Re: [libvirt] [PATCH] storage: Fix type PLOOP type check for storageVolUpload

2016-12-05 Thread Olga Krishtal
You are absolutely right.[?] Thanks a lot. From: John Ferlan <jfer...@redhat.com> Sent: Friday, December 2, 2016 11:06:37 PM To: libvir-list@redhat.com Cc: Olga Krishtal Subject: [PATCH] storage: Fix type PLOOP type check for storageVolUpload Com

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

2016-12-02 Thread Olga Krishtal
On 20/09/16 23:30, John Ferlan wrote: On 07/14/2016 01:13 PM, Olga Krishtal wrote: This patch supports pool and volume management within Virtuozzo Storage. Virtuozzo Storage is a highly-available distributed software defined storage with built-in replication and disaster recovery. From

[libvirt] [PATCH RFC v3 11/15] virsh: filesystem pools commands

2016-12-02 Thread Olga Krishtal
nse for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see + * <http://www.gnu.org/licenses/>. + * + * Olga Krishtal <okrish...@virtuozzo.com> + * + */ +#include +#include "virsh-fsitem.h" +

[libvirt] [PATCH RFC v3 13/15] FSPool: driver methods implementation

2016-12-02 Thread Olga Krishtal
Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- src/fs/fs_driver.c | 1723 +--- 1 file changed, 1515 insertions(+), 208 deletions(-) diff --git a/src/fs/fs_driver.c b/src/fs/fs_driver.c index 98d91fa..f913ce5 100644 --- a/

[libvirt] [PATCH RFC v3 10/15] FSPool: added configuration description

2016-12-02 Thread Olga Krishtal
Due to reusage of structs and some of functions from storage pools we operate in storage terms. Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- po/POTFILES.in |1 + src/Makefile.am |7 +- src/conf/fs_conf.c

[libvirt] [PATCH RFC v3 09/15] FSPool: implementation of remote protocol

2016-12-02 Thread Olga Krishtal
Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- daemon/remote.c | 35 src/Makefile.am | 6 +- src/check-driverimpls.pl | 2 + src/remote/remote_driver.c | 66 ++ src/remote/remote_protocol.x

[libvirt] [PATCH RFC v3 06/15] FSpool: implementing the public API

2016-12-02 Thread Olga Krishtal
Implementation of driver API and basic structs defenition Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- include/libvirt/virterror.h |7 + po/POTFILES.in |1 + src/conf/fs_conf.h | 159 + src/datatypes.c | 150 + src/datat

[libvirt] [PATCH RFC v3 12/15] FSPool: empty implementation of driver methods

2016-12-02 Thread Olga Krishtal
Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- daemon/Makefile.am | 4 + daemon/libvirtd.c | 9 + po/POTFILES.in | 1 + src/Makefile.am | 33 ++- src/fs/fs_backend.h | 94 +++ src/fs/fs_driver.c | 729 +++

[libvirt] [PATCH RFC v3 01/15] storage pools: refactoring of basic structs

2016-12-02 Thread Olga Krishtal
-by: Olga Krishtal <okrish...@virtuozzo.com> --- include/libvirt/libvirt-storage.h | 5 +- src/Makefile.am | 5 +- src/conf/storage_conf.h | 126 +++-- src/datatypes.h | 4 +- src/util/virpoolcommon.h

[libvirt] [PATCH RFC v3 03/15] storage pools: refactoring of fs backend

2016-12-02 Thread Olga Krishtal
The fs backend for storage pools works a lot with directories and etc. The same is true for filesystem pools with directory backend. In order to avoid rewriting the same code once again patch moves this code to virpoolcommon.c. Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> -

[libvirt] [PATCH RFC v3 05/15] FSPool: defining the internal API

2016-12-02 Thread Olga Krishtal
This patch introduces new filesystem pool driver. Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- src/driver-fs.h | 193 src/driver.h| 1 + 2 files changed, 194 insertions(+) create mode 100644 src/driver-fs.h diff

[libvirt] [PATCH RFC v3 02/15] storage pools: functions refactoring

2016-12-02 Thread Olga Krishtal
After reusage of all possible storage pool structures we will able to use some storage pool functions. Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- src/Makefile.am | 2 +- src/conf/storage_conf.c | 162 -- sr

[libvirt] [PATCH RFC v3 04/15] FSPool: defining the public API

2016-12-02 Thread Olga Krishtal
include/libvirt/libvirt-fs.h @@ -0,0 +1,254 @@ +/* libvirt-fs.h + * Summary: APIs for management of filesystem pools and items + * Description: Provides APIs for the management of filesystem pools and items + * Author: Olga Krishtal <okrish...@virtuozzo.com> + * + * Copyright (C) 2016 Parallel

[libvirt] [PATCH RFC v3 15/15] FSPool: Tests and documentation

2016-12-02 Thread Olga Krishtal
Patch adds general documentation for fspool and tests for directory backend. Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- docs/formatfs.html.in | 206 + docs/fspool.html.in| 41

[libvirt] [PATCH RFC v3 14/15] FSPool: directory backend inplementation

2016-12-02 Thread Olga Krishtal
Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- m4/virt-driver-fspool.m4 | 14 ++- po/POTFILES.in | 1 + src/Makefile.am | 10 +- src/fs/fs_backend_dir.c | 290 +++ src/fs/fs_backend_dir.h | 8 ++ src/fs/fs_dr

[libvirt] [PATCH RFC v3 07/15] FSPool: added access control objects and permissions

2016-12-02 Thread Olga Krishtal
Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- src/access/viraccessdriver.h | 15 + src/access/viraccessdrivernop.c| 21 +++ src/access/viraccessdriverpolkit.c | 47 ++ src/access/viraccessdriverstack.c | 50 +++ src/

[libvirt] [PATCH RFC v3 00/15] FSPool: backend directory

2016-12-02 Thread Olga Krishtal
- created simple tests - updated virsh.pod - added information abot fspool in fotmatfs.html v3: - in this version storage pool code is reused - resplitted patches - fixed some errors Olga Krishtal (15): storage pools: refactoring of basic structs storage pools: functions refactoring storage pools

[libvirt] [PATCH RFC v3 08/15] FSPool: added --with-fs compilation option

2016-12-02 Thread Olga Krishtal
In order to use fspool use --with-fs configuration option. It is is turned off by default. Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- configure.ac | 6 ++ m4/virt-driver-fspool.m4 | 33 + 2 files changed, 39 insertions(+)

Re: [libvirt] [PATCH] gcrypt: fix build in case we do not use gnutls and gcrypt

2016-11-03 Thread Olga Krishtal
On 03/11/16 17:13, Martin Kletzander wrote: On Thu, Nov 03, 2016 at 04:14:34PM +0300, Olga Krishtal wrote: In case when we use any crypt library and gnutls make returns compilation errors. Add info that it's caused by 680d2f49dad425395de627a31006cb84848cfa65, please. Signed-off-by: Olga

Re: [libvirt] [PATCH] gcrypt: fix build in case we do not use gnutls and gcrypt

2016-11-03 Thread Olga Krishtal
On 03/11/16 16:14, Olga Krishtal wrote: In case when we use any crypt library and gnutls make returns compilation errors. Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- src/libvirt.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/libvi

Re: [libvirt] Libvirt build broken

2016-11-03 Thread Olga Krishtal
On 03/11/16 16:50, Wei Liu wrote: Hi Xen Project's CI system found a build failure between libvirt changes 06a7b1ff..478ddedc. I don't think this is Xen specific FWIW. The build log can be found at:

[libvirt] [PATCH] gcrypt: fix build in case we do not use gnutls and gcrypt

2016-11-03 Thread Olga Krishtal
In case when we use any crypt library and gnutls make returns compilation errors. Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- src/libvirt.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/libvirt.c b/src/libvirt.c index 52462e3..7

Re: [libvirt] [PATCH rfc v2 0/8] fspool: backend directory

2016-10-14 Thread Olga Krishtal
On 14/10/16 16:15, John Ferlan wrote: [...] I have written this lines as a part of GPLv2+ boilerplate: https://www.redhat.com/archives/libvir-list/2016-August/msg01160.html, which I took from other libvirt parts. And I guess it was naturally to change name and company, don't you? And again,

Re: [libvirt] [PATCH rfc v2 0/8] fspool: backend directory

2016-10-07 Thread Olga Krishtal
On 24/09/16 00:12, John Ferlan wrote: On 09/23/2016 11:56 AM, Olga Krishtal wrote: On 21/09/16 19:17, Maxim Nestratov wrote: 20 сент. 2016 г., в 23:52, John Ferlan <jfer...@redhat.com> написал(а): On 09/15/2016 03:32 AM, Olga Krishtal wrote: Hi everyone, we would like to propose the

Re: [libvirt] [PATCH rfc v2 0/8] fspool: backend directory

2016-09-23 Thread Olga Krishtal
On 21/09/16 19:17, Maxim Nestratov wrote: 20 сент. 2016 г., в 23:52, John Ferlan <jfer...@redhat.com> написал(а): On 09/15/2016 03:32 AM, Olga Krishtal wrote: Hi everyone, we would like to propose the first implementation of fspool with directory backend. Filesystem pools is a fa

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

2016-09-23 Thread Olga Krishtal
On 20/09/16 23:30, John Ferlan wrote: On 07/14/2016 01:13 PM, Olga Krishtal wrote: This patch supports pool and volume management within Virtuozzo Storage. Virtuozzo Storage is a highly-available distributed software defined storage with built-in replication and disaster recovery. From

Re: [libvirt] [PATCH 8/8] fspools: docs and tests for fspool directory backend

2016-09-15 Thread Olga Krishtal
Hello again. Please, drop the commit message for this patch. Use the following one: Added XML 2 XML tests for fspool and item. On 15/09/16 10:32, Olga Krishtal wrote: At the moment only pool test is implemented. Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- docs/s

Re: [libvirt] [PATCH 8/8] fspools: docs and tests for fspool directory backend

2016-09-15 Thread Olga Krishtal
Hello again. Please, drop the commit message for this patch. Use the following one: Added XML 2 XML tests for fspool and item. From: Olga Krishtal Sent: Thursday, September 15, 2016 10:39:01 AM To: openstack-devel Cc: Maxim Nestratov; Nikolay Shirokovskiy

[libvirt] [PATCH 3/8] fspools: configuration and internal representation

2016-09-15 Thread Olga Krishtal
\ diff --git a/src/conf/fs_conf.c b/src/conf/fs_conf.c new file mode 100644 index 000..80f2664 --- /dev/null +++ b/src/conf/fs_conf.c @@ -0,0 +1,1637 @@ +/* + * fs_conf.c: config handling for fs driver + * Author: Olga Krishtal <okrish...@virtuozzo.com> + * + * Copyright (C) 2016 Parall

[libvirt] [PATCH 6/8] fspool: default implementation of filesystem pools

2016-09-15 Thread Olga Krishtal
ETURN_CHECK; void *virDriverLoadModule(const char *name); diff --git a/src/fs/fs_backend.h b/src/fs/fs_backend.h new file mode 100644 index 000..f7e0bec --- /dev/null +++ b/src/fs/fs_backend.h @@ -0,0 +1,107 @@ +/* + * fs_backend.h: file system backend implementation + * Author: Olga Krish

[libvirt] [PATCH 2/8] fspool: usual driver based implementation of filesystem pools API

2016-09-15 Thread Olga Krishtal
odeDevicePtr virGetNodeDevice(virConnectPtr conn, const char *name); virSecretPtr virGetSecret(virConnectPtr conn, diff --git a/src/driver-fs.h b/src/driver-fs.h new file mode 100644 index 000..37f6cb8 --- /dev/null +++ b/src/driver-fs.h @@ -0,0 +1,192

[libvirt] [PATCH 7/8] virsh: filesystem pools commands

2016-09-15 Thread Olga Krishtal
nse for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see + * <http://www.gnu.org/licenses/>. + * + * Olga Krishtal <okrish...@virtuozzo.com> + * + */ +#include +#include "virsh-fsitem.h" +

[libvirt] [PATCH 5/8] remote: filesystem pools driver implementation

2016-09-15 Thread Olga Krishtal
Signed-off-by: Nikolay Shirokovskiy Signed-off-by: Maxim Nestratov --- daemon/libvirtd.c| 10 + daemon/remote.c | 35 src/check-driverimpls.pl | 2 + src/driver.h | 1 +

[libvirt] [PATCH rfc v2 0/8] fspool: backend directory

2016-09-15 Thread Olga Krishtal
tests - updated virsh.pod - added information abot fspool in fotmatfs.html Olga Krishtal (8): fspool: introduce filesystem pools API fspool: usual driver based implementation of filesystem pools API fspools: configuration and internal representation fspools: acl support for filesystem pools

[libvirt] [PATCH 1/8] fspool: introduce filesystem pools API

2016-09-15 Thread Olga Krishtal
fs.h @@ -0,0 +1,260 @@ +/* libvirt-fs.h + * Summary: APIs for management of filesystem pools and items + * Description: Provides APIs for the management of filesystem pools and items + * Author: Olga Krishtal <okrish...@virtuozzo.com> + * + * Copyright (C) 2016 Parallels IP Holdings GmbH + * + * Li

[libvirt] [PATCH 4/8] fspools: acl support for filesystem pools

2016-09-15 Thread Olga Krishtal
Signed-off-by: Nikolay Shirokovskiy Signed-off-by: Maxim Nestratov --- src/access/viraccessdriver.h | 12 src/access/viraccessdrivernop.c| 19 ++ src/access/viraccessdriverpolkit.c | 47 ++

[libvirt] [PATCH 8/8] fspools: docs and tests for fspool directory backend

2016-09-15 Thread Olga Krishtal
At the moment only pool test is implemented. Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> --- docs/schemas/fsitem.rng| 66 + docs/schemas/fspool.rng| 82 tests/Makef

Re: [libvirt] [PATCH 0/7] fspool: backend directory

2016-08-25 Thread Olga Krishtal
On 25/08/16 04:14, Daniel P. Berrange wrote: On Fri, Aug 19, 2016 at 06:03:28PM +0300, Olga Krishtal wrote: Hi everyone, we would like to propose the first implementation of fspool with directory backend. Filesystem pools is a facility to manage filesystems resources similar to how storage

Re: [libvirt] [PATCH 6/7] fspool: default implementation of filesystem pools

2016-08-25 Thread Olga Krishtal
On 25/08/16 04:12, Daniel P. Berrange wrote: On Fri, Aug 19, 2016 at 06:03:34PM +0300, Olga Krishtal wrote: Implementation is backend base as in case of storage pools. This patch adds directory backend which is nothing more than managing directories inside another one as starting point. Signed

Re: [libvirt] [PATCH 7/7] virsh: filesystem pools commands

2016-08-25 Thread Olga Krishtal
On 25/08/16 04:13, Daniel P. Berrange wrote: On Fri, Aug 19, 2016 at 06:03:35PM +0300, Olga Krishtal wrote: Signed-off-by: Nikolay Shirokovskiy <nshirokovs...@virtuozzo.com> --- po/POTFILES.in |2 + tools/Makefile.am|4 + tools/virsh-fspool.c

Re: [libvirt] [PATCH 3/7] fspools: configuration and internal representation

2016-08-25 Thread Olga Krishtal
On 25/08/16 04:07, Daniel P. Berrange wrote: On Fri, Aug 19, 2016 at 06:03:31PM +0300, Olga Krishtal wrote: Signed-off-by: Nikolay Shirokovskiy <nshirokovs...@virtuozzo.com> --- po/POTFILES.in |1 + src/Makefile.am |5 + src/conf/fs_conf.c

Re: [libvirt] [PATCH 1/7] fspool: introduce filesystem pools API

2016-08-25 Thread Olga Krishtal
On 25/08/16 04:00, Daniel P. Berrange wrote: On Fri, Aug 19, 2016 at 06:03:29PM +0300, Olga Krishtal wrote: API follows the API of storage pools closely in parts which do not differ for filesystems. Signed-off-by: Nikolay Shirokovskiy <nshirokovs...@virtuozzo.com> --- include/libvirt/l

[libvirt] [PATCH 5/7] remote: filesystem pools driver implementation

2016-08-19 Thread Olga Krishtal
Signed-off-by: Nikolay Shirokovskiy --- daemon/libvirtd.c| 10 + daemon/remote.c | 35 +++ src/driver.h | 1 + src/remote/remote_driver.c | 72 +- src/remote/remote_protocol.x | 522

[libvirt] [PATCH 6/7] fspool: default implementation of filesystem pools

2016-08-19 Thread Olga Krishtal
Implementation is backend base as in case of storage pools. This patch adds directory backend which is nothing more than managing directories inside another one as starting point. Signed-off-by: Nikolay Shirokovskiy --- configure.ac | 33 +

[libvirt] [PATCH 7/7] virsh: filesystem pools commands

2016-08-19 Thread Olga Krishtal
Signed-off-by: Nikolay Shirokovskiy --- po/POTFILES.in |2 + tools/Makefile.am|4 + tools/virsh-fspool.c | 1728 ++ tools/virsh-fspool.h | 36 ++ tools/virsh-item.c | 1274

[libvirt] [PATCH 2/7] fspool: usual driver based implementation of filesystem pools API

2016-08-19 Thread Olga Krishtal
Signed-off-by: Nikolay Shirokovskiy --- include/libvirt/virterror.h |8 + po/POTFILES.in |1 + src/Makefile.am |3 + src/datatypes.c | 154 src/datatypes.h | 94 +++ src/driver-fs.h |

[libvirt] [PATCH 3/7] fspools: configuration and internal representation

2016-08-19 Thread Olga Krishtal
Signed-off-by: Nikolay Shirokovskiy --- po/POTFILES.in |1 + src/Makefile.am |5 + src/conf/fs_conf.c | 1624 ++ src/conf/fs_conf.h | 310 + src/libvirt_private.syms | 42 ++

[libvirt] [PATCH 0/7] fspool: backend directory

2016-08-19 Thread Olga Krishtal
-- item1/fs_driver/item1 item10 /fs_driver/item10 item11 /fs_driver/item11 item12 /fs_driver/item12 item15 /fs_driver/item15 Olga Krishtal (7): fspool: introduce filesystem pools API fspool: usual

[libvirt] [PATCH 4/7] fspools: acl support for filesystem pools

2016-08-19 Thread Olga Krishtal
Signed-off-by: Nikolay Shirokovskiy --- src/access/viraccessdriver.h | 12 src/access/viraccessdrivernop.c| 19 ++ src/access/viraccessdriverpolkit.c | 47 ++ src/access/viraccessdriverstack.c | 49 +++

[libvirt] [PATCH 1/7] fspool: introduce filesystem pools API

2016-08-19 Thread Olga Krishtal
: APIs for management of filesystem pools and items + * Description: Provides APIs for the management of filesystem pools and items + * Author: Olga Krishtal <okrish...@virtuozzo.com> + * + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your optio

[libvirt] [PATCH] vz: fixed race in vzDomainAttach/DettachDevice

2016-08-18 Thread Olga Krishtal
While dettaching/attaching device in OpenStack, nova calls vzDomainDettachDevice twice, because the update of the internal configuration of the ct comes a bit latter than the update event. As the result, we suffer from the second call to dettach the same device. Signed-off-by: Olga Krishtal

[libvirt] [PATCH v2] vz: fixed race in vzDomainAttach/DettachDevice

2016-08-18 Thread Olga Krishtal
While dettaching/attaching device in OpenStack, nova calls vzDomainDettachDevice twice, because the update of the internal configuration of the ct comes a bit latter than the update event. As the result, we suffer from the second call to dettach the same device. Signed-off-by: Olga Krishtal

Re: [libvirt] [PATCH 0/7] More detailed description

2016-08-18 Thread Olga Krishtal
and virsh commands to 'fspool' and 'volume' to 'item'. Olga Krishtal (7): fspool: introduce filesystem pools API fspool: usual driver based implementation of filesystem pools API fspools: configuration and internal representation fspools: acl support for filesystem pools remote

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 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

[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 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 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 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 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 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 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 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 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 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 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 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

  1   2   >