[Qemu-devel] [PATCH v2 1/3] block/gluster: rename [server, volname, image] -> [host, volume, path]

2015-10-21 Thread Prasanna Kumar Kalever
ost' 'image' -> 'path' 'volname' -> 'volume' Signed-off-by: Prasanna Kumar Kalever <prasanna.kale...@redhat.com> --- block/gluster.c | 54 +++--- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/block/gluster.c b/block/gluster.

[Qemu-devel] [PATCH v2 2/3] block/gluster: code cleanup

2015-10-21 Thread Prasanna Kumar Kalever
unified coding styles of multiline function arguments and other error functions moved random declarations of structures and other list variables Signed-off-by: Prasanna Kumar Kalever <prasanna.kale...@redhat.com> --- block/gluster.c

[Qemu-devel] [PATCH v9 3/3] block/gluster: add support for multiple gluster servers

2015-10-21 Thread Prasanna Kumar Kalever
t;,"transport":"rdma"}] } }' This patch gives a mechanism to provide all the server addresses, which are in replica set, so in case host1 is down VM can still boot from any of the active hosts. This is equivalent to the backup-volfile-servers option supported by mount.glusterf

[Qemu-devel] [PATCH v10 3/3] block/gluster: add support for multiple gluster servers

2015-10-27 Thread Prasanna Kumar Kalever
t;,"transport":"rdma"}] } }' This patch gives a mechanism to provide all the server addresses, which are in replica set, so in case host1 is down VM can still boot from any of the active hosts. This is equivalent to the backup-volfile-servers option supported by mount.glusterf

[Qemu-devel] [PATCH v2 1/3] block/gluster: rename [server, volname, image] -> [host, volume, path]

2015-11-10 Thread Prasanna Kumar Kalever
readability and makes it consistent with other existing code as well as the input keys/options, this patch renames the following variables 'server' -> 'host' 'image' -> 'path' 'volname' -> 'volume' Signed-off-by: Prasanna Kumar Kalever <prasanna.kale...@redhat.com> --- block

[Qemu-devel] [PATCH v2 2/3] block/gluster: code cleanup

2015-11-10 Thread Prasanna Kumar Kalever
unified coding styles of multiline function arguments and other error functions moved random declarations of structures and other list variables Signed-off-by: Prasanna Kumar Kalever <prasanna.kale...@redhat.com> --- block/gluster.c

[Qemu-devel] [PATCH 0/3] block/gluster: add support for multiple gluster servers

2015-11-10 Thread Prasanna Kumar Kalever
This release is rebased on qemu master branch. In this series of patches 1/3 and 2/3 are unchanged. Prasanna Kumar Kalever (3): block/gluster: rename [server, volname, image] -> [host, volume, path] block/gluster: code cleanup block/gluster: add support for multiple gluster servers bl

[Qemu-devel] [PATCH v13 3/3] block/gluster: add support for multiple gluster servers

2015-11-10 Thread Prasanna Kumar Kalever
08","transport":"rdma"}] } }' This patch gives a mechanism to provide all the server addresses, which are in replica set, so in case host1 is down VM can still boot from any of the active hosts. This is equivalent to the backup-volfile-servers option supported by mount.glusterfs

Re: [Qemu-devel] [PATCH v13 3/3] block/gluster: add support for multiple gluster servers

2015-11-12 Thread Prasanna Kumar Kalever
On Tuesday, November 10, 2015 9:37:20 PM, Eric Blake wrote: > > On 11/10/2015 02:09 AM, Prasanna Kumar Kalever wrote: > > This patch adds a way to specify multiple volfile servers to the gluster > > block backend of QEMU with tcp|rdma transport types and

Re: [Qemu-devel] [PATCH v13 3/3] block/gluster: add support for multiple gluster servers

2015-11-12 Thread Prasanna Kumar Kalever
On Tuesday, November 10, 2015 10:54:25 PM, Jeff Cody wrote: > > On Tue, Nov 10, 2015 at 02:39:16PM +0530, Prasanna Kumar Kalever wrote: > > This patch adds a way to specify multiple volfile servers to the gluster > > block backend of QEMU with tcp|rdma transport types and

[Qemu-devel] [PATCH 3/4] block/gluster: using new qapi schema

2015-11-12 Thread Prasanna Kumar Kalever
this patch adds GlusterConf to qapi/block-core.json Signed-off-by: Prasanna Kumar Kalever <prasanna.kale...@redhat.com> --- block/gluster.c | 104 +-- qapi/block-core.json | 60 +++-- 2 files changed, 109 inse

[Qemu-devel] [PATCH 1/4] block/gluster: rename [server, volname, image] -> [host, volume, path]

2015-11-12 Thread Prasanna Kumar Kalever
readability and makes it consistent with other existing code as well as the input keys/options, this patch renames the following variables 'server' -> 'host' 'image' -> 'path' 'volname' -> 'volume' Signed-off-by: Prasanna Kumar Kalever <prasanna.kale...@redhat.com> Reviewed-by:

[Qemu-devel] [PATCH 2/4] block/gluster: code cleanup

2015-11-12 Thread Prasanna Kumar Kalever
unified coding styles of multiline function arguments and other error functions moved random declarations of structures and other list variables Signed-off-by: Prasanna Kumar Kalever <prasanna.kale...@redhat.com> Reviewed-by: Eric Blake <ebl...@redhat.com> --- block/glu

[Qemu-devel] [PATCH 4/4] block/gluster: add support for multiple gluster servers

2015-11-12 Thread Prasanna Kumar Kalever
rt":"rdma"}] } }' This patch gives a mechanism to provide all the server addresses, which are in replica set, so in case host1 is down VM can still boot from any of the active hosts. This is equivalent to the backup-volfile-servers option supported by mount.glusterfs (FUSE way of m

[Qemu-devel] [PATCH 0/4] block/gluster: add support for multiple gluster servers

2015-11-12 Thread Prasanna Kumar Kalever
This release is rebased on qemu master branch. In this series of patches 1/4 and 2/4 are unchanged. Prasanna Kumar Kalever (4): block/gluster: rename [server, volname, image] -> [host, volume, path] block/gluster: code cleanup block/gluster: using new qapi schema block/gluster:

[Qemu-devel] [PATCH v12 3/3] block/gluster: add support for multiple gluster servers

2015-11-09 Thread Prasanna Kumar Kalever
t;,"transport":"rdma"}] } }' This patch gives a mechanism to provide all the server addresses, which are in replica set, so in case host1 is down VM can still boot from any of the active hosts. This is equivalent to the backup-volfile-servers option supported by mount.glusterfs (F

[Qemu-devel] [PATCH 0/3] block/gluster: add support for multiple gluster servers

2015-11-09 Thread Prasanna Kumar Kalever
Prasanna Kumar Kalever (3): block/gluster: rename [server, volname, image] -> [host, volume, path] block/gluster: code cleanup block/gluster: add support for multiple gluster servers block/gluster.c | 589 --- qapi/block-core.json |

Re: [Qemu-devel] [PATCH 3/3] block/gluster: add support for multiple gluster servers

2015-11-09 Thread Prasanna Kumar Kalever
On Monday, November 9, 2015 12:34:45 PM, Peter Krempa wrote: > On Thu, Nov 05, 2015 at 07:45:50 -0500, Prasanna Kumar Kalever wrote: > > On Thursday, November 5, 2015 6:07:06 PM, Prasanna Kumar Kalever wrote: > > > This patch adds a way to specify multiple volfile serv

[Qemu-devel] [PATCH RFC 0/3] block/gluster: add support for multiple gluster servers

2015-11-05 Thread Prasanna Kumar Kalever
Prasanna Kumar Kalever (3): block/gluster: rename [server, volname, image] -> [host, volume, path] block/gluster: code cleanup block/gluster: add support for multiple gluster servers block/gluster.c | 582 --- qapi/block-core.json |

[Qemu-devel] [PATCH 3/3] block/gluster: add support for multiple gluster servers

2015-11-05 Thread Prasanna Kumar Kalever
t;,"transport":"rdma"}] } }' This patch gives a mechanism to provide all the server addresses, which are in replica set, so in case host1 is down VM can still boot from any of the active hosts. This is equivalent to the backup-volfile-servers option supported by mount.glusterfs (F

Re: [Qemu-devel] [PATCH 3/3] block/gluster: add support for multiple gluster servers

2015-11-05 Thread Prasanna Kumar Kalever
On Thursday, November 5, 2015 6:07:06 PM, Prasanna Kumar Kalever wrote: > This patch adds a way to specify multiple volfile servers to the gluster > block backend of QEMU with tcp|rdma transport types and their port numbers. > > Problem: > > Currently VM Image on gluster volume

[Qemu-devel] [PATCH 3/3] block/gluster: code cleanup

2015-10-19 Thread Prasanna Kumar Kalever
unified coding styles of multiline function arguments and other error functions moved random declarations of structures and other list variables Signed-off-by: Prasanna Kumar Kalever <prasanna.kale...@redhat.com> --- block/gluster.c

[Qemu-devel] [PATCH 2/3] block/gluster: rename [server, volname, image] -> [host, volume, path]

2015-10-19 Thread Prasanna Kumar Kalever
the following variables 'server' -> 'host' 'image' -> 'path' 'volname' -> 'volume' Signed-off-by: Prasanna Kumar Kalever <prasanna.kale...@redhat.com> --- block/gluster.c | 54 +++--- 1 file changed, 27 insertions(+), 27 deletions(-) dif

[Qemu-devel] [PATCH 1/3] block/gluster: add support for multiple gluster servers

2015-10-19 Thread Prasanna Kumar Kalever
t;,"transport":"rdma"}] } }' This patch gives a mechanism to provide all the server addresses, which are in replica set, so in case host1 is down VM can still boot from any of the active hosts. This is equivalent to the backup-volfile-servers option supported by mount.gluste

[Qemu-devel] [PATCH v7 1/1] block/gluster: add support for multiple gluster backup volfile servers

2015-10-14 Thread Prasanna Kumar Kalever
t;,"transport":"rdma"}] } }' This patch gives a mechanism to provide all the server addresses, which are in replica set, so in case host1 is down VM can still boot from any of the active hosts. This is equivalent to the backup-volfile-servers option supported by mount.glusterfs (F

Re: [Qemu-devel] [PATCH v7 1/1] block/gluster: add support for multiple gluster backup volfile servers

2015-10-16 Thread Prasanna Kumar Kalever
On 10/15/2015 02:59 PM, Peter Krempa wrote: > On Wed, Oct 14, 2015 at 12:36:58 +0530, Prasanna Kumar Kalever wrote: > > This patch adds a way to specify multiple volfile servers to the gluster > > block backend of QEMU with tcp|rdma transport types and their port numbers. &

Re: [Qemu-devel] [PATCH 1/3] block/gluster: add support for multiple gluster servers

2015-10-20 Thread Prasanna Kumar Kalever
On Tuesday, October 20, 2015 1:38:37 AM, Eric Blake wrote: > On 10/19/2015 06:13 AM, Prasanna Kumar Kalever wrote: > > This patch adds a way to specify multiple volfile servers to the gluster > > block backend of QEMU with tcp|rdma transport types and their port numbers. &g

[Qemu-devel] [PATCH v6 1/1] block/gluster: add support for multiple gluster backup volfile servers

2015-10-10 Thread Prasanna Kumar Kalever
t;,"transport":"rdma"}] } }' This patch gives a mechanism to provide all the server addresses, which are in replica set, so in case host1 is down VM can still boot from any of the active hosts. This is equivalent to the backup-volfile-servers option supported by mount.glusterfs (F

[Qemu-devel] [PATCH 1/1] block/gluster: add support for multiple gluster backup volfile servers

2015-09-08 Thread Prasanna Kumar Kalever
are in replica set, so in case server1 is down VM can still boot from any of the active servers. This is equivalent to the backup-volfile-servers option supported by mount.glusterfs (FUSE way of mounting gluster volume) Signed-off-by: Prasanna Kumar Kalever <prasanna.kale...@redhat.com> ---

[Qemu-devel] [PATCH v2 1/1] block/gluster: add support for multiple gluster backup volfile servers

2015-09-09 Thread Prasanna Kumar Kalever
the server addresses which are in replica set, so in case server1 is down VM can still boot from any of the active servers. This is equivalent to the backup-volfile-servers option supported by mount.glusterfs (FUSE way of mounting gluster volume) Signed-off-by: Prasanna Kumar Kalever <prasanna.k

[Qemu-devel] [PATCH v5 1/1] block/gluster: add support for multiple gluster backup volfile servers

2015-09-28 Thread Prasanna Kumar Kalever
addresses which are in replica set, so in case server1 is down VM can still boot from any of the active servers. This is equivalent to the volfile-servers option supported by mount.glusterfs (FUSE way of mounting gluster volume) This patch depends on a recent fix in libgfapi raised as part of this work: h

[Qemu-devel] [PATCH v3 1/1] block/gluster: add support for multiple gluster backup volfile servers

2015-09-21 Thread Prasanna Kumar Kalever
addresses each have their own port number, but all use common transport type pattern: URI syntax with query (?) delimiter syntax: file=gluster[+transport-type]://[server[:port]]/testvol/a.img\ [?backup-volfile-servers=server1[:port]\ =server2[:port]] v3: multiple server add

[Qemu-devel] [PATCH v4 1/1] block/gluster: add support for multiple gluster backup volfile servers

2015-09-22 Thread Prasanna Kumar Kalever
8","transport":"rdma"}] } }' This patch gives a mechanism to provide all the server addresses which are in replica set, so in case server1 is down VM can still boot from any of the active servers. This is equivalent to the backup-volfile-servers option supported by moun

[Qemu-devel] [PATCH v17 0/4][WIP] block/gluster: add support for multiple gluster servers

2016-06-15 Thread Prasanna Kumar Kalever
This version of patches are rebased on master branch. Prasanna Kumar Kalever (4): block/gluster: rename [server, volname, image] -> [host, volume, path] block/gluster: code cleanup block/gluster: using new qapi schema block/gluster: add support for multiple gluster servers v1: multi

[Qemu-devel] [PATCH v17 2/4] block/gluster: code cleanup

2016-06-15 Thread Prasanna Kumar Kalever
unified coding styles of multiline function arguments and other error functions moved random declarations of structures and other list variables Signed-off-by: Prasanna Kumar Kalever <prasanna.kale...@redhat.com> Reviewed-by: Eric Blake <ebl...@redhat.com> --- block/glu

[Qemu-devel] [PATCH v17 4/4] block/gluster: add support for multiple gluster servers

2016-06-15 Thread Prasanna Kumar Kalever
":"unix"}] } }' This patch gives a mechanism to provide all the server addresses, which are in replica set, so in case host1 is down VM can still boot from any of the active hosts. This is equivalent to the backup-volfile-servers option supported by mount.glusterfs (FUSE way of mounting

[Qemu-devel] [PATCH v17 3/4] block/gluster: using new qapi schema

2016-06-15 Thread Prasanna Kumar Kalever
this patch adds 'GlusterServer' related schema in qapi/block-core.json Signed-off-by: Prasanna Kumar Kalever <prasanna.kale...@redhat.com> --- block/gluster.c | 101 ++- qapi/block-core.json | 64 +--- 2

[Qemu-devel] [PATCH v17 1/4] block/gluster: rename [server, volname, image] -> [host, volume, path]

2016-06-15 Thread Prasanna Kumar Kalever
' -> 'host' 'image' -> 'path' 'volname' -> 'volume' Signed-off-by: Prasanna Kumar Kalever <prasanna.kale...@redhat.com> Reviewed-by: Eric Blake <ebl...@redhat.com> --- block/gluster.c | 54 +++--- 1 file changed, 27 insert

Re: [Qemu-devel] [PATCH 4/4] block/gluster: add support for multiple gluster servers

2016-02-05 Thread Prasanna Kumar Kalever
On Thursday, February 4, 2016 6:52:15 PM Kevin Wolf Wrote: > Am 12.11.2015 um 23:36 hat Eric Blake geschrieben: > > On 11/12/2015 03:22 AM, Prasanna Kumar Kalever wrote: > > > +static struct glfs *qemu_gluster_init(BlockdevOptionsGluster **gconf, > > > +

[Qemu-devel] [PATCH v16 2/4] block/gluster: code cleanup

2016-03-29 Thread Prasanna Kumar Kalever
unified coding styles of multiline function arguments and other error functions moved random declarations of structures and other list variables Signed-off-by: Prasanna Kumar Kalever <prasanna.kale...@redhat.com> Reviewed-by: Eric Blake <ebl...@redhat.com> --- block/glu

[Qemu-devel] [PATCH v16 4/4] block/gluster: add support for multiple gluster servers

2016-03-29 Thread Prasanna Kumar Kalever
":"unix"}] } }' This patch gives a mechanism to provide all the server addresses, which are in replica set, so in case host1 is down VM can still boot from any of the active hosts. This is equivalent to the backup-volfile-servers option supported by mount.glusterfs (FUSE way of mounting

[Qemu-devel] [PATCH v16 1/4] block/gluster: rename [server, volname, image] -> [host, volume, path]

2016-03-29 Thread Prasanna Kumar Kalever
' -> 'host' 'image' -> 'path' 'volname' -> 'volume' Signed-off-by: Prasanna Kumar Kalever <prasanna.kale...@redhat.com> Reviewed-by: Eric Blake <ebl...@redhat.com> --- block/gluster.c | 54 +++--- 1 file changed, 27 insert

[Qemu-devel] [PATCH v16 3/4] block/gluster: using new qapi schema

2016-03-29 Thread Prasanna Kumar Kalever
this patch adds 'GlusterServer' related schema in qapi/block-core.json Signed-off-by: Prasanna Kumar Kalever <prasanna.kale...@redhat.com> --- block/gluster.c | 101 ++- qapi/block-core.json | 60 -- 2

[Qemu-devel] [PATCH v16 0/4][WIP] block/gluster: add support for multiple gluster servers

2016-03-29 Thread Prasanna Kumar Kalever
WIP: As soon as discriminated union support is added use it with GlusterServer This version of patches are rebased on master branch. Prasanna Kumar Kalever (4): block/gluster: rename [server, volname, image] -> [host, volume, path] block/gluster: code cleanup block/gluster: using new q

[Qemu-devel] [PATCH v4] block/gluster: add support to choose libgfapi logfile

2016-07-22 Thread Prasanna Kumar Kalever
ogfile":"/var/log/qemu/qemu-gfapi.log", "server":[ { "type":"tcp", "host":"1.2.3.4", "port":24007 },

[Qemu-devel] [PATCH v2] block/gluster: fix doc in the qapi schema and member name

2016-07-22 Thread Prasanna Kumar Kalever
1. qapi @BlockdevOptionsGluster schema member name s/debug_level/debug-level/ 2. rearrange the versioning 3. s/server description/servers description/ Signed-off-by: Prasanna Kumar Kalever <prasanna.kale...@redhat.com> v2: address review comments given by Eric Blake v1: Initial patch ---

[Qemu-devel] [PATCH v1 1/1] block/gluster: improve defense over string to int conversion

2016-08-03 Thread Prasanna Kumar Kalever
parse_option_number() However It is a good practice to use function like parse_uint_full() over atoi() to keep port self defended Signed-off-by: Prasanna Kumar Kalever <prasanna.kale...@redhat.com> --- block/gluster.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff

[Qemu-devel] [PATCH v20 0/5] block/gluster: add support for multiple gluster servers

2016-07-19 Thread Prasanna Kumar Kalever
This version of patches are rebased repo at git://repo.or.cz/qemu/armbru.git qapi-not-next Prasanna Kumar Kalever (5): block/gluster: rename [server, volname, image] -> [host, volume, path] block/gluster: code cleanup block/gluster: deprecate rdma support block/gluster: using new q

[Qemu-devel] [PATCH v20 2/5] block/gluster: code cleanup

2016-07-19 Thread Prasanna Kumar Kalever
unified coding styles of multiline function arguments and other error functions moved random declarations of structures and other list variables Signed-off-by: Prasanna Kumar Kalever <prasanna.kale...@redhat.com> Reviewed-by: Eric Blake <ebl...@redhat.com> Reviewed-by: Jeff Cody <j

[Qemu-devel] [PATCH v20 1/5] block/gluster: rename [server, volname, image] -> [host, volume, path]

2016-07-19 Thread Prasanna Kumar Kalever
' -> 'host' 'image' -> 'path' 'volname' -> 'volume' Signed-off-by: Prasanna Kumar Kalever <prasanna.kale...@redhat.com> Reviewed-by: Eric Blake <ebl...@redhat.com> Reviewed-by: Jeff Cody <jc...@redhat.com> --- block/gluster.c | 54 +++

[Qemu-devel] [PATCH v20 4/5] block/gluster: using new qapi schema

2016-07-19 Thread Prasanna Kumar Kalever
this patch adds 'GlusterServer' related schema in qapi/block-core.json Signed-off-by: Prasanna Kumar Kalever <prasanna.kale...@redhat.com> --- block/gluster.c | 115 +-- qapi/block-core.json | 68 +++--- 2

[Qemu-devel] [PATCH v20 3/5] block/gluster: deprecate rdma support

2016-07-19 Thread Prasanna Kumar Kalever
, its the gluster libgfapi code which handles anything other than unix transport as socket/tcp, sad but true. Also gluster doesn't support ipv6 addresses, removing the ipv6 related comments/docs section Signed-off-by: Prasanna Kumar Kalever <prasanna.kale...@redhat.com> --- block/gluster.

[Qemu-devel] [PATCH v20 5/5] block/gluster: add support for multiple gluster servers

2016-07-19 Thread Prasanna Kumar Kalever
tvol", "path":"/path/a.qcow2","debug":9,"server": [{type:"tcp",host:"1.2.3.4",port=24007}, {type:"unix",socket:"/var/run/glusterd.socket"}] } }' This patch gives a mechanism to provide all

[Qemu-devel] [PATCH v19 2/5] block/gluster: code cleanup

2016-07-15 Thread Prasanna Kumar Kalever
unified coding styles of multiline function arguments and other error functions moved random declarations of structures and other list variables Signed-off-by: Prasanna Kumar Kalever <prasanna.kale...@redhat.com> Reviewed-by: Eric Blake <ebl...@redhat.com> Reviewed-by: Jeff Cody <j

[Qemu-devel] [PATCH v19 3/5] block/gluster: remove rdma transport

2016-07-15 Thread Prasanna Kumar Kalever
gluster volfile server fetch happens through unix and/or tcp, it doesn't support volfile fetch over rdma, hence removing the dead code Signed-off-by: Prasanna Kumar Kalever <prasanna.kale...@redhat.com> --- block/gluster.c | 35 +-- 1 file changed, 1 ins

[Qemu-devel] [PATCH v19 5/5] block/gluster: add support for multiple gluster servers

2016-07-15 Thread Prasanna Kumar Kalever
o provide all the server addresses, which are in replica set, so in case host1 is down VM can still boot from any of the active hosts. This is equivalent to the backup-volfile-servers option supported by mount.glusterfs (FUSE way of mounting gluster volume) credits: sincere thanks to all

[Qemu-devel] [PATCH v19 0/5] block/gluster: add support for multiple gluster servers

2016-07-15 Thread Prasanna Kumar Kalever
This version of patches are rebased repo at git://repo.or.cz/qemu/armbru.git qapi-not-next Prasanna Kumar Kalever (5): block/gluster: rename [server, volname, image] -> [host, volume, path] block/gluster: code cleanup block/gluster: remove rdma transport block/gluster: using new q

[Qemu-devel] [PATCH v19 4/5] block/gluster: using new qapi schema

2016-07-15 Thread Prasanna Kumar Kalever
this patch adds 'GlusterServer' related schema in qapi/block-core.json Signed-off-by: Prasanna Kumar Kalever <prasanna.kale...@redhat.com> --- block/gluster.c | 111 +-- qapi/block-core.json | 94

[Qemu-devel] [PATCH v19 1/5] block/gluster: rename [server, volname, image] -> [host, volume, path]

2016-07-15 Thread Prasanna Kumar Kalever
' -> 'host' 'image' -> 'path' 'volname' -> 'volume' Signed-off-by: Prasanna Kumar Kalever <prasanna.kale...@redhat.com> Reviewed-by: Eric Blake <ebl...@redhat.com> Reviewed-by: Jeff Cody <jc...@redhat.com> --- block/gluster.c | 54 +++

[Qemu-devel] [PATCH v18 3/4] block/gluster: using new qapi schema

2016-07-13 Thread Prasanna Kumar Kalever
this patch adds 'GlusterServer' related schema in qapi/block-core.json Signed-off-by: Prasanna Kumar Kalever <prasanna.kale...@redhat.com> --- block/gluster.c | 89 ++-- qapi/block-core.json | 67

[Qemu-devel] [PATCH v18 0/4] block/gluster: add support for multiple gluster servers

2016-07-13 Thread Prasanna Kumar Kalever
This version of patches are rebased on master branch. Prasanna Kumar Kalever (4): block/gluster: rename [server, volname, image] -> [host, volume, path] block/gluster: code cleanup block/gluster: using new qapi schema block/gluster: add support for multiple gluster servers v1: multi

[Qemu-devel] [PATCH v18 1/4] block/gluster: rename [server, volname, image] -> [host, volume, path]

2016-07-13 Thread Prasanna Kumar Kalever
' -> 'host' 'image' -> 'path' 'volname' -> 'volume' Signed-off-by: Prasanna Kumar Kalever <prasanna.kale...@redhat.com> Reviewed-by: Eric Blake <ebl...@redhat.com> Reviewed-by: Jeff Cody <jc...@redhat.com> --- block/gluster.c | 54 +++

[Qemu-devel] [PATCH v18 4/4] block/gluster: add support for multiple gluster servers

2016-07-13 Thread Prasanna Kumar Kalever
":"unix"}] } }' This patch gives a mechanism to provide all the server addresses, which are in replica set, so in case host1 is down VM can still boot from any of the active hosts. This is equivalent to the backup-volfile-servers option supported by mount.glusterfs (FUSE way of mounting

[Qemu-devel] [PATCH v18 2/4] block/gluster: code cleanup

2016-07-13 Thread Prasanna Kumar Kalever
unified coding styles of multiline function arguments and other error functions moved random declarations of structures and other list variables Signed-off-by: Prasanna Kumar Kalever <prasanna.kale...@redhat.com> Reviewed-by: Eric Blake <ebl...@redhat.com> Reviewed-by: Jeff Cody <j

[Qemu-devel] [PATCH] block/gluster: add support to choose libgfapi logfile

2016-07-05 Thread Prasanna Kumar Kalever
in logging to the specified file and also help in persisting the gfapi logs. Usage: -drive file=gluster://hostname/volname/image.qcow2,file.debug=9,\ file.logfile=/var/log/qemu/qemu-gfapi.log Signed-off-by: Prasanna Kumar Kalever <prasanna.kale...@redhat.com> --- block/glu

[Qemu-devel] [PATCH v2 1/1] block/gluster: add support to choose libgfapi logfile

2016-07-06 Thread Prasanna Kumar Kalever
in logging to the specified file and also help in persisting the gfapi logs. Usage: -drive file=gluster://hostname/volname/image.qcow2,file.debug=9,\ file.logfile=/var/log/qemu/qemu-gfapi.log Signed-off-by: Prasanna Kumar Kalever <prasanna.kale...@redhat.com> --- v1: initial

[Qemu-devel] [PATCH v1 1/1] block/gluster: fix port type in the QAPI options list

2016-08-09 Thread Prasanna Kumar Kalever
treats it as QEMU_OPT_NUMBER, hence fixing port to accept QEMU_OPT_STRING. Credits: Markus Armbruster <arm...@redhat.com> Signed-off-by: Prasanna Kumar Kalever <prasanna.kale...@redhat.com> --- block/gluster.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block

[Qemu-devel] [PATCH v2 1/1] block/gluster: improve defense over string to int conversion

2016-08-09 Thread Prasanna Kumar Kalever
let's move port type from QEMU_OPT_NUMBER to QEMU_OPT_STRING Signed-off-by: Prasanna Kumar Kalever <prasanna.kale...@redhat.com> --- v1: Initial patch v2: Address comments on v1 given by Markus --- block/gluster.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git

[Qemu-devel] [PATCH v3] block/gluster: add support to choose libgfapi logfile

2016-07-22 Thread Prasanna Kumar Kalever
ogfile":"/var/log/qemu/qemu-gfapi.log", "server":[ { "type":"tcp", "host":"1.2.3.4", "port":24007 },

[Qemu-devel] [PATCH] block/gluster: fix doc in the qapi schema

2016-07-22 Thread Prasanna Kumar Kalever
1. s/@debug-level/@debug_level/ 2. rearrange the versioning 3. s/server description/servers description/ Signed-off-by: Prasanna Kumar Kalever <prasanna.kale...@redhat.com> --- qapi/block-core.json | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/qapi/block-core.

[Qemu-devel] [PATCH v2 1/1] qapi/block-core: add doc describing GlusterServer vs. SocketAddress

2016-08-20 Thread Prasanna Kumar Kalever
Added documentation describing relation between GlusterServer and SocketAddress qapi schemas. Thanks to Markus Armbruster <arm...@redhat.com> Signed-off-by: Prasanna Kumar Kalever <prasanna.kale...@redhat.com> --- v2: apply suggestions from Markus on v1 v1: initial doc changes ---

[Qemu-devel] [PATCH v1 1/1] qapi/block-core: add doc describing GlusterServer vs. SocketAddress

2016-08-18 Thread Prasanna Kumar Kalever
Added documentation describing relation between GlusterServer and SocketAddress qapi schemas. Thanks to Markus Armbruster <arm...@redhat.com> Signed-off-by: Prasanna Kumar Kalever <prasanna.kale...@redhat.com> --- qapi/block-core.json | 9 + 1 file changed, 9 insertions(+)

[Qemu-devel] [PATCH v1 1/1] block/gluster: memory usage: use one glfs instance per volume

2016-10-27 Thread Prasanna Kumar Kalever
nna Kumar Kalever <prasanna.kale...@redhat.com> --- block/gluster.c | 105 1 file changed, 91 insertions(+), 14 deletions(-) diff --git a/block/gluster.c b/block/gluster.c index 01b479f..367d692 100644 --- a/block/gluster.c ++

[Qemu-devel] [PATCH v1 1/1] qemu-doc: update gluster protocol usage guide

2016-11-01 Thread Prasanna Kumar Kalever
Document: 1. The new debug and logfile options with their usages and 2. New json format and its usage. Signed-off-by: Prasanna Kumar Kalever <prasanna.kale...@redhat.com> --- qemu-doc.texi | 46 -- qemu-options.hx | 14 -- 2 files c

[Qemu-devel] [PATCH v3 3/3] qemu-doc: update gluster protocol usage guide

2016-11-02 Thread Prasanna Kumar Kalever
Document: 1. The new debug and logfile options with their usages 2. New json format and its usage and 3. update "GlusterFS, Device URL Syntax" section in "Invocation" Signed-off-by: Prasanna Kumar Kalever <prasanna.kale...@redhat.com>

[Qemu-devel] [PATCH v3 2/3] block/nfs: fix QMP to match debug option

2016-11-02 Thread Prasanna Kumar Kalever
-size': 'int', '*debug-level': 'int' } } To make this consistent with other block protocols like gluster, lets change s/debug-level/debug/ Suggested-by: Eric Blake <ebl...@redhat.com> Signed-off-by: Prasanna Kumar Kalever <prasanna.kale...@redhat.com> --- block/nfs.c

[Qemu-devel] [PATCH v3 0/3] qemu-doc: update gluster protocol usage guide

2016-11-02 Thread Prasanna Kumar Kalever
: Address review comments by Eric Blake on v1 Mostly grammar related changes, formating for better readability and updated commit message v1: Initial commit Prasanna Kumar Kalever (3): block/gluster: fix QMP to match debug option block/nfs: fix QMP to match debug option qemu-doc: update

[Qemu-devel] [PATCH v3 1/3] block/gluster: fix QMP to match debug option

2016-11-02 Thread Prasanna Kumar Kalever
'debug' as the option for choosing debug level of gluster protocol driver. This patch fix QMP definition BlockdevOptionsGluster s/debug-level/debug/ Suggested-by: Eric Blake <ebl...@redhat.com> Signed-off-by: Prasanna Kumar Kalever <prasanna.kale...@redhat.com> --- block/gluster

[Qemu-devel] [PATCH v2 1/1] qemu-doc: update gluster protocol usage guide

2016-11-02 Thread Prasanna Kumar Kalever
Document: 1. The new debug and logfile options with their usages 2. New json format and its usage and 3. update "GlusterFS, Device URL Syntax" section in "Invocation" Signed-off-by: Prasanna Kumar Kalever <prasanna.kale...@redhat.com> --- v2: Address review comments by E

[Qemu-devel] [PATCH v2 1/1] block/gluster: memory usage: use one glfs instance per volume

2016-10-27 Thread Prasanna Kumar Kalever
nna Kumar Kalever <prasanna.kale...@redhat.com> --- v2: Address comments from Jeff Cody on v1 v1: Initial patch --- block/gluster.c | 94 - 1 file changed, 80 insertions(+), 14 deletions(-) diff --git a/block/gluster.c b/block/gluste

[Qemu-devel] [PATCH] block/gluster: defend on legacy ftruncate api use

2018-04-12 Thread Prasanna Kumar Kalever
Signed-off-by: Prasanna Kumar Kalever <prasanna.kale...@redhat.com> --- block/gluster.c | 15 +-- configure | 8 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/block/gluster.c b/block/gluster.c index 4adc1a875b..2474580ad6 100644 --- a/block/glu