Re: [Qemu-devel] [PATCH V15 12/13] quorum: Add quorum_open() and quorum_close().

2014-02-05 Thread Benoît Canet
Le Tuesday 04 Feb 2014 à 17:08:07 (+0100), Kevin Wolf a écrit : Am 03.02.2014 um 22:51 hat Benoît Canet geschrieben: From: Benoît Canet ben...@irqsave.net Example of command line: -drive if=virtio,file.driver=quorum,\ file.children.0.file.filename=1.raw,\ file.children.0.node-name=1

Re: [Qemu-devel] [PATCH V15 09/13] quorum: Add quorum_co_get_block_status.

2014-02-05 Thread Benoît Canet
Le Tuesday 04 Feb 2014 à 16:49:22 (+0100), Kevin Wolf a écrit : Am 03.02.2014 um 22:51 hat Benoît Canet geschrieben: From: Benoît Canet ben...@irqsave.net Signed-off-by: Benoit Canet ben...@irqsave.net Reviewed-by: Max Reitz mre...@redhat.com --- block/quorum.c | 51

Re: [Qemu-devel] [PATCH 1/2] block: gluster - code movements, state storage changes

2014-02-05 Thread Benoît Canet
Le Tuesday 04 Feb 2014 à 14:26:58 (-0500), Jeff Cody a écrit : In preparation for supporting reopen on gluster, move flag parsing out to a function. Also, store open_flags and filename in the gluster state storage struct, and add a NULL check in the gconf cleanup. Signed-off-by: Jeff Cody

Re: [Qemu-devel] [PATCH] qemu-iotest: Make 077 raw-only

2014-02-05 Thread Benoît Canet
\$status 0 1 2 3 15 . ./common.rc . ./common.filter -_supported_fmt generic +_supported_fmt raw _supported_proto generic _supported_os Linux -- 1.8.1.4 Reviewed-by: Benoît Canet ben...@irqsave.net

Re: [Qemu-devel] [PATCH V15 13/13] quorum: Add unit test.

2014-02-04 Thread Benoît Canet
Le Tuesday 04 Feb 2014 à 17:13:27 (+0100), Kevin Wolf a écrit : Am 03.02.2014 um 22:51 hat Benoît Canet geschrieben: Signed-off-by: Benoit Canet ben...@irqsave.net Reviewed-by: Max Reitz mre...@redhat.com --- tests/qemu-iotests/075 | 95

Re: [Qemu-devel] [PATCH V14 00/13] Quorum block filter

2014-02-04 Thread Benoît Canet
Le Tuesday 04 Feb 2014 à 11:35:04 (+0100), Kevin Wolf a écrit : Am 03.02.2014 um 20:11 hat Benoît Canet geschrieben: v14: Use quorum_report_failure in early failure test suggested by Max [Benoît] v13: update copyright date and company legal status Benoît, please slow down

Re: [Qemu-devel] [PATCH V10 06/13] quorum: Add quorum mechanism.

2014-02-03 Thread Benoît Canet
Le Saturday 01 Feb 2014 à 00:04:01 (+0100), Max Reitz a écrit : On 28.01.2014 17:52, Benoît Canet wrote: From: Benoît Canet ben...@irqsave.net Use gnutls's SHA-256 to compare versions. Signed-off-by: Benoit Canet ben...@irqsave.net --- block/Makefile.objs | 2 +- block

Re: [Qemu-devel] [PATCH V10 09/13] quorum: Add quorum_co_get_block_status.

2014-02-03 Thread Benoît Canet
Le Sunday 02 Feb 2014 à 22:44:07 (+0100), Max Reitz a écrit : On 28.01.2014 17:52, Benoît Canet wrote: From: Benoît Canet ben...@irqsave.net Signed-off-by: Benoit Canet ben...@irqsave.net --- block/quorum.c | 67 ++ 1 file

Re: [Qemu-devel] [PATCH V10 10/13] quorum: Add quorum_co_flush().

2014-02-03 Thread Benoît Canet
Le Sunday 02 Feb 2014 à 23:02:57 (+0100), Max Reitz a écrit : On 28.01.2014 17:52, Benoît Canet wrote: From: Benoît Canet ben...@irqsave.net Makes a vote to select error if any. Signed-off-by: Benoit Canet ben...@irqsave.net --- block/quorum.c | 34

Re: [Qemu-devel] [PATCH V10 12/13] quorum: Add quorum_open() and quorum_close().

2014-02-03 Thread Benoît Canet
Le Monday 03 Feb 2014 à 00:09:28 (+0100), Max Reitz a écrit : On 28.01.2014 17:52, Benoît Canet wrote: From: Benoît Canet ben...@irqsave.net Example of command line: -drive if=virtio,file.driver=quorum,\ file.children.0.file.filename=1.raw,\ file.children.0.node-name=1.raw,\ file.children

Re: [Qemu-devel] [PATCH V10 12/13] quorum: Add quorum_open() and quorum_close().

2014-02-03 Thread Benoît Canet
Le Monday 03 Feb 2014 à 00:09:28 (+0100), Max Reitz a écrit : On 28.01.2014 17:52, Benoît Canet wrote: From: Benoît Canet ben...@irqsave.net Example of command line: -drive if=virtio,file.driver=quorum,\ file.children.0.file.filename=1.raw,\ file.children.0.node-name=1.raw,\ file.children

Re: [Qemu-devel] [PATCH V10 12/13] quorum: Add quorum_open() and quorum_close().

2014-02-03 Thread Benoît Canet
Le Monday 03 Feb 2014 à 13:21:18 (+0100), Benoît Canet a écrit : Le Monday 03 Feb 2014 à 00:09:28 (+0100), Max Reitz a écrit : On 28.01.2014 17:52, Benoît Canet wrote: From: Benoît Canet ben...@irqsave.net Example of command line: -drive if=virtio,file.driver=quorum,\ file.children.0

[Qemu-devel] [PATCH V11 06/13] quorum: Add quorum mechanism.

2014-02-03 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Use gnutls's SHA-256 to compare versions. Signed-off-by: Benoit Canet ben...@irqsave.net --- block/Makefile.objs | 2 +- block/quorum.c| 333 +- configure | 36 + docs/qmp

[Qemu-devel] [PATCH V11 13/13] quorum: Add unit test.

2014-02-03 Thread Benoît Canet
Signed-off-by: Benoit Canet ben...@irqsave.net --- tests/qemu-iotests/075 | 95 ++ tests/qemu-iotests/075.out | 34 + tests/qemu-iotests/group | 1 + 3 files changed, 130 insertions(+) create mode 100755 tests/qemu-iotests/075

[Qemu-devel] [PATCH V11 09/13] quorum: Add quorum_co_get_block_status.

2014-02-03 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Signed-off-by: Benoit Canet ben...@irqsave.net --- block/quorum.c | 67 ++ 1 file changed, 67 insertions(+) diff --git a/block/quorum.c b/block/quorum.c index 5467f27..663b3a8 100644 --- a/block

[Qemu-devel] [PATCH V11 10/13] quorum: Add quorum_co_flush().

2014-02-03 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Makes a vote to select error if any. Signed-off-by: Benoit Canet ben...@irqsave.net --- block/quorum.c | 34 ++ 1 file changed, 34 insertions(+) diff --git a/block/quorum.c b/block/quorum.c index 663b3a8..fd361ce 100644

[Qemu-devel] [PATCH V11 03/13] quorum: Add quorum_aio_writev and its dependencies.

2014-02-03 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Signed-off-by: Benoit Canet ben...@irqsave.net Reviewed-by: Max Reitz mre...@redhat.com --- block/quorum.c | 123 + 1 file changed, 123 insertions(+) diff --git a/block/quorum.c b/block/quorum.c index

[Qemu-devel] [PATCH V11 02/13] quorum: Create BDRVQuorumState and BlkDriver and do init.

2014-02-03 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Signed-off-by: Benoit Canet ben...@irqsave.net Reviewed-by: Max Reitz mre...@redhat.com --- block/quorum.c | 25 + 1 file changed, 25 insertions(+) diff --git a/block/quorum.c b/block/quorum.c index 1695f04..0242378 100644

[Qemu-devel] [PATCH V11 11/13] quorum: Implement recursive .bdrv_recurse_is_first_non_filter in quorum.

2014-02-03 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Signed-off-by: Benoit Canet ben...@irqsave.net Reviewed-by: Max Reitz mre...@redhat.com --- block/quorum.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/block/quorum.c b/block/quorum.c index fd361ce..6d333d1 100644 --- a/block

[Qemu-devel] [PATCH V11 08/13] quorum: Add quorum_invalidate_cache().

2014-02-03 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Signed-off-by: Benoit Canet ben...@irqsave.net Reviewed-by: Max Reitz mre...@redhat.com --- block/quorum.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/block/quorum.c b/block/quorum.c index 442da2e..5467f27 100644 --- a/block/quorum.c

[Qemu-devel] [PATCH V11 05/13] quorum: Add quorum_aio_readv.

2014-02-03 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Signed-off-by: Benoit Canet ben...@irqsave.net Reviewed-by: Max Reitz mre...@redhat.com --- block/quorum.c | 40 +++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/block/quorum.c b/block/quorum.c index

[Qemu-devel] [PATCH V11 00/13] Quorum block filter

2014-02-03 Thread Benoît Canet
New version taking in account most comments made by Max Benoît Canet (13): quorum: Create quorum.c, add QuorumSingleAIOCB and QuorumAIOCB. quorum: Create BDRVQuorumState and BlkDriver and do init. quorum: Add quorum_aio_writev and its dependencies. blkverify: Extract qemu_iovec_clone

[Qemu-devel] [PATCH V11 04/13] blkverify: Extract qemu_iovec_clone() and qemu_iovec_compare() from blkverify.

2014-02-03 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Signed-off-by: Benoit Canet ben...@irqsave.net Reviewed-by: Max Reitz mre...@redhat.com --- block/blkverify.c | 108 +- include/qemu-common.h | 2 + util/iov.c| 103

[Qemu-devel] [PATCH V11 07/13] quorum: Add quorum_getlength().

2014-02-03 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Check that every bs file returns the same length. Otherwise, return -EIO to disable the quorum and avoid length discrepancy. Signed-off-by: Benoit Canet ben...@irqsave.net Reviewed-by: Max Reitz mre...@redhat.com --- block/quorum.c | 26

[Qemu-devel] [PATCH V12 02/13] quorum: Create BDRVQuorumState and BlkDriver and do init.

2014-02-03 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Signed-off-by: Benoit Canet ben...@irqsave.net Reviewed-by: Max Reitz mre...@redhat.com --- block/quorum.c | 25 + 1 file changed, 25 insertions(+) diff --git a/block/quorum.c b/block/quorum.c index 1695f04..0242378 100644

[Qemu-devel] [PATCH V12 05/13] quorum: Add quorum_aio_readv.

2014-02-03 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Signed-off-by: Benoit Canet ben...@irqsave.net Reviewed-by: Max Reitz mre...@redhat.com --- block/quorum.c | 40 +++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/block/quorum.c b/block/quorum.c index

[Qemu-devel] [PATCH V12 01/13] quorum: Create quorum.c, add QuorumSingleAIOCB and QuorumAIOCB.

2014-02-03 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Signed-off-by: Benoit Canet ben...@irqsave.net Reviewed-by: Max Reitz mre...@redhat.com --- block/Makefile.objs | 1 + block/quorum.c | 54 + 2 files changed, 55 insertions(+) create mode 100644

[Qemu-devel] [PATCH V12 06/13] quorum: Add quorum mechanism.

2014-02-03 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Use gnutls's SHA-256 to compare versions. Signed-off-by: Benoit Canet ben...@irqsave.net --- block/Makefile.objs | 2 +- block/quorum.c| 400 +++--- configure | 36 + docs/qmp

[Qemu-devel] [PATCH V12 04/13] blkverify: Extract qemu_iovec_clone() and qemu_iovec_compare() from blkverify.

2014-02-03 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Signed-off-by: Benoit Canet ben...@irqsave.net Reviewed-by: Max Reitz mre...@redhat.com --- block/blkverify.c | 108 +- include/qemu-common.h | 2 + util/iov.c| 103

[Qemu-devel] [PATCH V12 08/13] quorum: Add quorum_invalidate_cache().

2014-02-03 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Signed-off-by: Benoit Canet ben...@irqsave.net Reviewed-by: Max Reitz mre...@redhat.com --- block/quorum.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/block/quorum.c b/block/quorum.c index 1ac3ab9..a10eb48 100644 --- a/block/quorum.c

[Qemu-devel] [PATCH V12 09/13] quorum: Add quorum_co_get_block_status.

2014-02-03 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Signed-off-by: Benoit Canet ben...@irqsave.net --- block/quorum.c | 51 +++ 1 file changed, 51 insertions(+) diff --git a/block/quorum.c b/block/quorum.c index a10eb48..20e9be5 100644 --- a/block/quorum.c

[Qemu-devel] [PATCH V12 12/13] quorum: Add quorum_open() and quorum_close().

2014-02-03 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Example of command line: -drive if=virtio,file.driver=quorum,\ file.children.0.file.filename=1.raw,\ file.children.0.node-name=1.raw,\ file.children.0.driver=raw,\ file.children.1.file.filename=2.raw,\ file.children.1.node-name=2.raw,\ file.children.1.driver

[Qemu-devel] [PATCH V12 10/13] quorum: Add quorum_co_flush().

2014-02-03 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Makes a vote to select error if any. Signed-off-by: Benoit Canet ben...@irqsave.net --- block/quorum.c | 34 ++ 1 file changed, 34 insertions(+) diff --git a/block/quorum.c b/block/quorum.c index 20e9be5..af588e2 100644

[Qemu-devel] [PATCH V12 13/13] quorum: Add unit test.

2014-02-03 Thread Benoît Canet
Signed-off-by: Benoit Canet ben...@irqsave.net --- tests/qemu-iotests/075 | 95 ++ tests/qemu-iotests/075.out | 34 + tests/qemu-iotests/group | 1 + 3 files changed, 130 insertions(+) create mode 100755 tests/qemu-iotests/075

[Qemu-devel] [PATCH V12 11/13] quorum: Implement recursive .bdrv_recurse_is_first_non_filter in quorum.

2014-02-03 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Signed-off-by: Benoit Canet ben...@irqsave.net Reviewed-by: Max Reitz mre...@redhat.com --- block/quorum.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/block/quorum.c b/block/quorum.c index af588e2..64e77dc 100644 --- a/block

[Qemu-devel] [PATCH V12 00/13] quorum block filter

2014-02-03 Thread Benoît Canet
v11: also vote on error code on quorum failure [Max] v10: Comply with Max review Benoît Canet (13): quorum: Create quorum.c, add QuorumSingleAIOCB and QuorumAIOCB. quorum: Create BDRVQuorumState and BlkDriver and do init. quorum: Add quorum_aio_writev and its dependencies

[Qemu-devel] [PATCH V12 07/13] quorum: Add quorum_getlength().

2014-02-03 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Check that every bs file returns the same length. Otherwise, return -EIO to disable the quorum and avoid length discrepancy. Signed-off-by: Benoit Canet ben...@irqsave.net Reviewed-by: Max Reitz mre...@redhat.com --- block/quorum.c | 26

[Qemu-devel] [PATCH V12 03/13] quorum: Add quorum_aio_writev and its dependencies.

2014-02-03 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Signed-off-by: Benoit Canet ben...@irqsave.net Reviewed-by: Max Reitz mre...@redhat.com --- block/quorum.c | 123 + 1 file changed, 123 insertions(+) diff --git a/block/quorum.c b/block/quorum.c index

[Qemu-devel] [PATCH V11 12/13] quorum: Add quorum_open() and quorum_close().

2014-02-03 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Example of command line: -drive if=virtio,file.driver=quorum,\ file.children.0.file.filename=1.raw,\ file.children.0.node-name=1.raw,\ file.children.0.driver=raw,\ file.children.1.file.filename=2.raw,\ file.children.1.node-name=2.raw,\ file.children.1.driver

[Qemu-devel] [PATCH V13 00/13] Quorum block filter

2014-02-03 Thread Benoît Canet
v13: update copyright date and company legal status Benoît Canet (13): quorum: Create quorum.c, add QuorumSingleAIOCB and QuorumAIOCB. quorum: Create BDRVQuorumState and BlkDriver and do init. quorum: Add quorum_aio_writev and its dependencies. blkverify: Extract qemu_iovec_clone

[Qemu-devel] [PATCH V13 09/13] quorum: Add quorum_co_get_block_status.

2014-02-03 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Signed-off-by: Benoit Canet ben...@irqsave.net --- block/quorum.c | 51 +++ 1 file changed, 51 insertions(+) diff --git a/block/quorum.c b/block/quorum.c index feeb81a..0f4f476 100644 --- a/block/quorum.c

[Qemu-devel] [PATCH V13 02/13] quorum: Create BDRVQuorumState and BlkDriver and do init.

2014-02-03 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Signed-off-by: Benoit Canet ben...@irqsave.net Reviewed-by: Max Reitz mre...@redhat.com --- block/quorum.c | 25 + 1 file changed, 25 insertions(+) diff --git a/block/quorum.c b/block/quorum.c index 17695d6..157efdf 100644

[Qemu-devel] [PATCH V13 06/13] quorum: Add quorum mechanism.

2014-02-03 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Use gnutls's SHA-256 to compare versions. Signed-off-by: Benoit Canet ben...@irqsave.net --- block/Makefile.objs | 2 +- block/quorum.c| 400 +++--- configure | 36 + docs/qmp

[Qemu-devel] [PATCH V13 10/13] quorum: Add quorum_co_flush().

2014-02-03 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Makes a vote to select error if any. Signed-off-by: Benoit Canet ben...@irqsave.net --- block/quorum.c | 34 ++ 1 file changed, 34 insertions(+) diff --git a/block/quorum.c b/block/quorum.c index 0f4f476..43144a5 100644

[Qemu-devel] [PATCH V13 03/13] quorum: Add quorum_aio_writev and its dependencies.

2014-02-03 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Signed-off-by: Benoit Canet ben...@irqsave.net Reviewed-by: Max Reitz mre...@redhat.com --- block/quorum.c | 123 + 1 file changed, 123 insertions(+) diff --git a/block/quorum.c b/block/quorum.c index

[Qemu-devel] [PATCH V13 01/13] quorum: Create quorum.c, add QuorumSingleAIOCB and QuorumAIOCB.

2014-02-03 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Signed-off-by: Benoit Canet ben...@irqsave.net Reviewed-by: Max Reitz mre...@redhat.com --- block/Makefile.objs | 1 + block/quorum.c | 54 + 2 files changed, 55 insertions(+) create mode 100644

[Qemu-devel] [PATCH V11 01/13] quorum: Create quorum.c, add QuorumSingleAIOCB and QuorumAIOCB.

2014-02-03 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Signed-off-by: Benoit Canet ben...@irqsave.net Reviewed-by: Max Reitz mre...@redhat.com --- block/Makefile.objs | 1 + block/quorum.c | 54 + 2 files changed, 55 insertions(+) create mode 100644

[Qemu-devel] [PATCH V13 05/13] quorum: Add quorum_aio_readv.

2014-02-03 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Signed-off-by: Benoit Canet ben...@irqsave.net Reviewed-by: Max Reitz mre...@redhat.com --- block/quorum.c | 40 +++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/block/quorum.c b/block/quorum.c index

[Qemu-devel] [PATCH V13 13/13] quorum: Add unit test.

2014-02-03 Thread Benoît Canet
Signed-off-by: Benoit Canet ben...@irqsave.net --- tests/qemu-iotests/075 | 95 ++ tests/qemu-iotests/075.out | 34 + tests/qemu-iotests/group | 1 + 3 files changed, 130 insertions(+) create mode 100755 tests/qemu-iotests/075

[Qemu-devel] [PATCH V13 12/13] quorum: Add quorum_open() and quorum_close().

2014-02-03 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Example of command line: -drive if=virtio,file.driver=quorum,\ file.children.0.file.filename=1.raw,\ file.children.0.node-name=1.raw,\ file.children.0.driver=raw,\ file.children.1.file.filename=2.raw,\ file.children.1.node-name=2.raw,\ file.children.1.driver

[Qemu-devel] [PATCH V13 07/13] quorum: Add quorum_getlength().

2014-02-03 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Check that every bs file returns the same length. Otherwise, return -EIO to disable the quorum and avoid length discrepancy. Signed-off-by: Benoit Canet ben...@irqsave.net Reviewed-by: Max Reitz mre...@redhat.com --- block/quorum.c | 26

[Qemu-devel] [PATCH V13 04/13] blkverify: Extract qemu_iovec_clone() and qemu_iovec_compare() from blkverify.

2014-02-03 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Signed-off-by: Benoit Canet ben...@irqsave.net Reviewed-by: Max Reitz mre...@redhat.com --- block/blkverify.c | 108 +- include/qemu-common.h | 2 + util/iov.c| 103

[Qemu-devel] [PATCH V13 08/13] quorum: Add quorum_invalidate_cache().

2014-02-03 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Signed-off-by: Benoit Canet ben...@irqsave.net Reviewed-by: Max Reitz mre...@redhat.com --- block/quorum.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/block/quorum.c b/block/quorum.c index b712c0f..feeb81a 100644 --- a/block/quorum.c

[Qemu-devel] [PATCH V13 11/13] quorum: Implement recursive .bdrv_recurse_is_first_non_filter in quorum.

2014-02-03 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Signed-off-by: Benoit Canet ben...@irqsave.net Reviewed-by: Max Reitz mre...@redhat.com --- block/quorum.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/block/quorum.c b/block/quorum.c index 43144a5..1e0c94e 100644 --- a/block

[Qemu-devel] [PATCH V14 13/13] quorum: Add unit test.

2014-02-03 Thread Benoît Canet
Signed-off-by: Benoit Canet ben...@irqsave.net --- tests/qemu-iotests/075 | 95 ++ tests/qemu-iotests/075.out | 34 + tests/qemu-iotests/group | 1 + 3 files changed, 130 insertions(+) create mode 100755 tests/qemu-iotests/075

[Qemu-devel] [PATCH V14 12/13] quorum: Add quorum_open() and quorum_close().

2014-02-03 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Example of command line: -drive if=virtio,file.driver=quorum,\ file.children.0.file.filename=1.raw,\ file.children.0.node-name=1.raw,\ file.children.0.driver=raw,\ file.children.1.file.filename=2.raw,\ file.children.1.node-name=2.raw,\ file.children.1.driver

[Qemu-devel] [PATCH V14 05/13] quorum: Add quorum_aio_readv.

2014-02-03 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Signed-off-by: Benoit Canet ben...@irqsave.net Reviewed-by: Max Reitz mre...@redhat.com --- block/quorum.c | 40 +++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/block/quorum.c b/block/quorum.c index

[Qemu-devel] [PATCH V14 08/13] quorum: Add quorum_invalidate_cache().

2014-02-03 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Signed-off-by: Benoit Canet ben...@irqsave.net Reviewed-by: Max Reitz mre...@redhat.com --- block/quorum.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/block/quorum.c b/block/quorum.c index a3920d8..4b726ba 100644 --- a/block/quorum.c

[Qemu-devel] [PATCH V14 00/13] Quorum block filter

2014-02-03 Thread Benoît Canet
v14: Use quorum_report_failure in early failure test suggested by Max [Benoît] v13: update copyright date and company legal status Benoît Canet (13): quorum: Create quorum.c, add QuorumSingleAIOCB and QuorumAIOCB. quorum: Create BDRVQuorumState and BlkDriver and do init. quorum: Add

[Qemu-devel] [PATCH V14 10/13] quorum: Add quorum_co_flush().

2014-02-03 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Makes a vote to select error if any. Signed-off-by: Benoit Canet ben...@irqsave.net --- block/quorum.c | 34 ++ 1 file changed, 34 insertions(+) diff --git a/block/quorum.c b/block/quorum.c index 6f7a40d..5b77c02 100644

[Qemu-devel] [PATCH V14 06/13] quorum: Add quorum mechanism.

2014-02-03 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Use gnutls's SHA-256 to compare versions. Signed-off-by: Benoit Canet ben...@irqsave.net --- block/Makefile.objs | 2 +- block/quorum.c| 401 +++--- configure | 36 + docs/qmp

[Qemu-devel] [PATCH V14 09/13] quorum: Add quorum_co_get_block_status.

2014-02-03 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Signed-off-by: Benoit Canet ben...@irqsave.net --- block/quorum.c | 51 +++ 1 file changed, 51 insertions(+) diff --git a/block/quorum.c b/block/quorum.c index 4b726ba..6f7a40d 100644 --- a/block/quorum.c

[Qemu-devel] [PATCH V14 11/13] quorum: Implement recursive .bdrv_recurse_is_first_non_filter in quorum.

2014-02-03 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Signed-off-by: Benoit Canet ben...@irqsave.net Reviewed-by: Max Reitz mre...@redhat.com --- block/quorum.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/block/quorum.c b/block/quorum.c index 5b77c02..a4716b3 100644 --- a/block

[Qemu-devel] [PATCH V14 04/13] blkverify: Extract qemu_iovec_clone() and qemu_iovec_compare() from blkverify.

2014-02-03 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Signed-off-by: Benoit Canet ben...@irqsave.net Reviewed-by: Max Reitz mre...@redhat.com --- block/blkverify.c | 108 +- include/qemu-common.h | 2 + util/iov.c| 103

[Qemu-devel] [PATCH V14 03/13] quorum: Add quorum_aio_writev and its dependencies.

2014-02-03 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Signed-off-by: Benoit Canet ben...@irqsave.net Reviewed-by: Max Reitz mre...@redhat.com --- block/quorum.c | 123 + 1 file changed, 123 insertions(+) diff --git a/block/quorum.c b/block/quorum.c index

[Qemu-devel] [PATCH V14 01/13] quorum: Create quorum.c, add QuorumSingleAIOCB and QuorumAIOCB.

2014-02-03 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Signed-off-by: Benoit Canet ben...@irqsave.net Reviewed-by: Max Reitz mre...@redhat.com --- block/Makefile.objs | 1 + block/quorum.c | 54 + 2 files changed, 55 insertions(+) create mode 100644

[Qemu-devel] [PATCH V14 07/13] quorum: Add quorum_getlength().

2014-02-03 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Check that every bs file returns the same length. Otherwise, return -EIO to disable the quorum and avoid length discrepancy. Signed-off-by: Benoit Canet ben...@irqsave.net Reviewed-by: Max Reitz mre...@redhat.com --- block/quorum.c | 26

[Qemu-devel] [PATCH V14 02/13] quorum: Create BDRVQuorumState and BlkDriver and do init.

2014-02-03 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Signed-off-by: Benoit Canet ben...@irqsave.net Reviewed-by: Max Reitz mre...@redhat.com --- block/quorum.c | 25 + 1 file changed, 25 insertions(+) diff --git a/block/quorum.c b/block/quorum.c index 17695d6..157efdf 100644

Re: [Qemu-devel] [PATCH V14 12/13] quorum: Add quorum_open() and quorum_close().

2014-02-03 Thread Benoît Canet
Le Monday 03 Feb 2014 à 21:22:45 (+0100), Max Reitz a écrit : On 03.02.2014 20:11, Benoît Canet wrote: From: Benoît Canet ben...@irqsave.net Example of command line: -drive if=virtio,file.driver=quorum,\ file.children.0.file.filename=1.raw,\ file.children.0.node-name=1.raw,\ file.children

[Qemu-devel] [PATCH V15 08/13] quorum: Add quorum_invalidate_cache().

2014-02-03 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Signed-off-by: Benoit Canet ben...@irqsave.net Reviewed-by: Max Reitz mre...@redhat.com --- block/quorum.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/block/quorum.c b/block/quorum.c index 2f302b4..cef4424 100644 --- a/block/quorum.c

[Qemu-devel] [PATCH V15 05/13] quorum: Add quorum_aio_readv.

2014-02-03 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Signed-off-by: Benoit Canet ben...@irqsave.net Reviewed-by: Max Reitz mre...@redhat.com --- block/quorum.c | 38 ++ 1 file changed, 38 insertions(+) diff --git a/block/quorum.c b/block/quorum.c index 81bffdd..699b512

[Qemu-devel] [PATCH V15 11/13] quorum: Implement recursive .bdrv_recurse_is_first_non_filter in quorum.

2014-02-03 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Signed-off-by: Benoit Canet ben...@irqsave.net Reviewed-by: Max Reitz mre...@redhat.com --- block/quorum.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/block/quorum.c b/block/quorum.c index c9e3b2a..1e683f8 100644 --- a/block

[Qemu-devel] [PATCH V15 13/13] quorum: Add unit test.

2014-02-03 Thread Benoît Canet
Signed-off-by: Benoit Canet ben...@irqsave.net Reviewed-by: Max Reitz mre...@redhat.com --- tests/qemu-iotests/075 | 95 ++ tests/qemu-iotests/075.out | 34 + tests/qemu-iotests/group | 1 + 3 files changed, 130 insertions(+)

[Qemu-devel] [PATCH V15 04/13] blkverify: Extract qemu_iovec_clone() and qemu_iovec_compare() from blkverify.

2014-02-03 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Signed-off-by: Benoit Canet ben...@irqsave.net Reviewed-by: Max Reitz mre...@redhat.com --- block/blkverify.c | 108 +- include/qemu-common.h | 2 + util/iov.c| 103

[Qemu-devel] [PATCH V15 03/13] quorum: Add quorum_aio_writev and its dependencies.

2014-02-03 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Signed-off-by: Benoit Canet ben...@irqsave.net --- block/quorum.c | 104 + 1 file changed, 104 insertions(+) diff --git a/block/quorum.c b/block/quorum.c index 157efdf..81bffdd 100644 --- a/block

[Qemu-devel] [PATCH V15 07/13] quorum: Add quorum_getlength().

2014-02-03 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Check that every bs file returns the same length. Otherwise, return -EIO to disable the quorum and avoid length discrepancy. Signed-off-by: Benoit Canet ben...@irqsave.net Reviewed-by: Max Reitz mre...@redhat.com --- block/quorum.c | 26

[Qemu-devel] [PATCH V15 10/13] quorum: Add quorum_co_flush().

2014-02-03 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Makes a vote to select error if any. Signed-off-by: Benoit Canet ben...@irqsave.net --- block/quorum.c | 28 1 file changed, 28 insertions(+) diff --git a/block/quorum.c b/block/quorum.c index 677a96d..c9e3b2a 100644

Re: [Qemu-devel] [PATCH V14 00/13] Quorum block filter

2014-02-03 Thread Benoît Canet
Le Monday 03 Feb 2014 à 16:10:00 (-0500), Jeff Cody a écrit : On Mon, Feb 03, 2014 at 08:11:39PM +0100, Benoît Canet wrote: v14: Use quorum_report_failure in early failure test suggested by Max [Benoît] v13: update copyright date and company legal status Benoît Canet (13

[Qemu-devel] [PATCH V15 01/13] quorum: Create quorum.c, add QuorumSingleAIOCB and QuorumAIOCB.

2014-02-03 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Signed-off-by: Benoit Canet ben...@irqsave.net Reviewed-by: Max Reitz mre...@redhat.com --- block/Makefile.objs | 1 + block/quorum.c | 54 + 2 files changed, 55 insertions(+) create mode 100644

[Qemu-devel] [PATCH V15 00/13] Quorum block filter

2014-02-03 Thread Benoît Canet
if instead of conditions in the for loop [Max] qdict_flatten don't work for QMP references (I tried) need max review of writev patch and quorum patch Benoît Canet (13): quorum: Create quorum.c, add QuorumSingleAIOCB and QuorumAIOCB. quorum: Create BDRVQuorumState and BlkDriver and do init

[Qemu-devel] [PATCH V15 12/13] quorum: Add quorum_open() and quorum_close().

2014-02-03 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Example of command line: -drive if=virtio,file.driver=quorum,\ file.children.0.file.filename=1.raw,\ file.children.0.node-name=1.raw,\ file.children.0.driver=raw,\ file.children.1.file.filename=2.raw,\ file.children.1.node-name=2.raw,\ file.children.1.driver

[Qemu-devel] [PATCH V15 06/13] quorum: Add quorum mechanism.

2014-02-03 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Use gnutls's SHA-256 to compare versions. Signed-off-by: Benoit Canet ben...@irqsave.net --- block/Makefile.objs | 2 +- block/quorum.c| 386 +- configure | 36 + docs/qmp

[Qemu-devel] [PATCH V15 09/13] quorum: Add quorum_co_get_block_status.

2014-02-03 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Signed-off-by: Benoit Canet ben...@irqsave.net Reviewed-by: Max Reitz mre...@redhat.com --- block/quorum.c | 51 +++ 1 file changed, 51 insertions(+) diff --git a/block/quorum.c b/block/quorum.c index cef4424

[Qemu-devel] [PATCH V15 02/13] quorum: Create BDRVQuorumState and BlkDriver and do init.

2014-02-03 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Signed-off-by: Benoit Canet ben...@irqsave.net Reviewed-by: Max Reitz mre...@redhat.com --- block/quorum.c | 25 + 1 file changed, 25 insertions(+) diff --git a/block/quorum.c b/block/quorum.c index 17695d6..157efdf 100644

Re: [Qemu-devel] [PATCH V6 8/8] block: Use graph node name as reference in bdrv_file_open().

2014-01-31 Thread Benoît Canet
Le Friday 31 Jan 2014 à 21:32:34 (+0100), Max Reitz a écrit : On 28.01.2014 01:04, Benoît Canet wrote: Le Monday 27 Jan 2014 à 20:11:59 (+0100), Max Reitz a écrit : On 27.01.2014 15:36, Benoît Canet wrote: Le Friday 24 Jan 2014 à 15:54:39 (+0100), Max Reitz a écrit : On 24.01.2014 15:48

Re: [Qemu-devel] [PATCH 1/4] qemu-io: New option -a to aio_read and aio_write

2014-01-29 Thread Benoît Canet
Le Wednesday 29 Jan 2014 à 16:40:40 (+0800), Fam Zheng a écrit : This option will enable accounting of aio requests. Signed-off-by: Fam Zheng f...@redhat.com --- qemu-io-cmds.c | 35 +++ 1 file changed, 31 insertions(+), 4 deletions(-) diff --git

Re: [Qemu-devel] [PATCH 3/4] qemu-iotests: Allow caller to disable underscore convertion for qmp

2014-01-29 Thread Benoît Canet
Le Wednesday 29 Jan 2014 à 16:40:42 (+0800), Fam Zheng a écrit : QMP command block_set_io_throttle expects underscores in parameters instead of dashes: {iops,bps}_{rd,wr,max}. Add optional argument conv_keys (defaults to True, backward compatible), it will be used in IO throttling test case.

Re: [Qemu-devel] [PATCH 4/4] qemu-iotests: Add 080 for IO throttling

2014-01-29 Thread Benoît Canet
Le Wednesday 29 Jan 2014 à 16:40:43 (+0800), Fam Zheng a écrit : This case utilizes qemu-io command aio_{read,write} -a -q to verify the effectiveness of IO throttling options. The -a option will cause qemu-io requests to be accounted. It's implemented by driving the vm timer from qtest

Re: [Qemu-devel] [PATCH] block/iscsi: always fill bs-bl.opt_transfer_length

2014-01-29 Thread Benoît Canet
Le Wednesday 29 Jan 2014 à 13:03:35 (+0100), Peter Lieven a écrit : the opt_transfer_length has nothing to do with logical block provisioning stuff so always copy it from the block limits VPD page. Reported-By: Benoit Canet ben...@irqsave.net Signed-off-by: Peter Lieven p...@kamp.de ---

Re: [Qemu-devel] [PATCH] qemu-iotests: only run 071 on qcow2

2014-01-29 Thread Benoît Canet
Le Wednesday 29 Jan 2014 à 16:33:54 (+0100), Stefan Hajnoczi a écrit : The 071 test is designed for IMGFMT=qcow2 because it uses the l2_load blkdebug event. Its output filtering also assumes that IMGFMT is not raw since 071.out contains format=raw but IMGFMT=raw would filter the output to

Re: [Qemu-devel] [PATCH] QMP: allow JSON dict arguments in qmp-shell

2014-01-29 Thread Benoît Canet
Le Wednesday 29 Jan 2014 à 12:17:31 (+0100), Stefan Hajnoczi a écrit : qmp-shell hides the QMP wire protocol JSON encoding from the user. Most of the time this is helpful and makes the command-line human-friendly. Some QMP commands take a dict as an argument. In order to express this we

Re: [Qemu-devel] [PATCHv7 1/5] block: add native support for NFS

2014-01-29 Thread Benoît Canet
Le Wednesday 29 Jan 2014 à 09:50:21 (+0100), Peter Lieven a écrit : This patch adds native support for accessing images on NFS shares without the requirement to actually mount the entire NFS share on the host. NFS Images can simply be specified by an url of the form:

[Qemu-devel] [PATCH V10 05/13] quorum: Add quorum_aio_readv.

2014-01-28 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Signed-off-by: Benoit Canet ben...@irqsave.net --- block/quorum.c | 40 +++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/block/quorum.c b/block/quorum.c index 85992ab..5bf37b3 100644 --- a/block/quorum.c

[Qemu-devel] [PATCH V10 02/13] quorum: Create BDRVQuorumState and BlkDriver and do init.

2014-01-28 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Signed-off-by: Benoit Canet ben...@irqsave.net --- block/quorum.c | 25 + 1 file changed, 25 insertions(+) diff --git a/block/quorum.c b/block/quorum.c index 1695f04..0242378 100644 --- a/block/quorum.c +++ b/block/quorum.c @@ -15,6

[Qemu-devel] [PATCH V10 03/13] quorum: Add quorum_aio_writev and its dependencies.

2014-01-28 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Signed-off-by: Benoit Canet ben...@irqsave.net --- block/quorum.c | 123 + 1 file changed, 123 insertions(+) diff --git a/block/quorum.c b/block/quorum.c index 0242378..85992ab 100644 --- a/block

[Qemu-devel] [PATCH V10 04/13] blkverify: Extract qemu_iovec_clone() and qemu_iovec_compare() from blkverify.

2014-01-28 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Signed-off-by: Benoit Canet ben...@irqsave.net --- block/blkverify.c | 108 +- include/qemu-common.h | 2 + util/iov.c| 103 +++ 3 files changed

[Qemu-devel] [PATCH V10 08/13] quorum: Add quorum_invalidate_cache().

2014-01-28 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Signed-off-by: Benoit Canet ben...@irqsave.net --- block/quorum.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/block/quorum.c b/block/quorum.c index a8a8492..a47cd33 100644 --- a/block/quorum.c +++ b/block/quorum.c @@ -577,6 +577,16

[Qemu-devel] [PATCH V10 01/13] quorum: Create quorum.c, add QuorumSingleAIOCB and QuorumAIOCB.

2014-01-28 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Signed-off-by: Benoit Canet ben...@irqsave.net --- block/Makefile.objs | 1 + block/quorum.c | 54 + 2 files changed, 55 insertions(+) create mode 100644 block/quorum.c diff --git a/block

[Qemu-devel] [PATCH V10 12/13] quorum: Add quorum_open() and quorum_close().

2014-01-28 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Example of command line: -drive if=virtio,file.driver=quorum,\ file.children.0.file.filename=1.raw,\ file.children.0.node-name=1.raw,\ file.children.0.driver=raw,\ file.children.1.file.filename=2.raw,\ file.children.1.node-name=2.raw,\ file.children.1.driver

[Qemu-devel] [PATCH V10 09/13] quorum: Add quorum_co_get_block_status.

2014-01-28 Thread Benoît Canet
From: Benoît Canet ben...@irqsave.net Signed-off-by: Benoit Canet ben...@irqsave.net --- block/quorum.c | 67 ++ 1 file changed, 67 insertions(+) diff --git a/block/quorum.c b/block/quorum.c index a47cd33..9b0718b 100644 --- a/block

<    5   6   7   8   9   10   11   12   13   14   >