On Thu, Aug 9, 2012 at 10:07 AM, Benoît Canet wrote:
>> > +static int64_t quorum_getlength(BlockDriverState *bs)
>> > +{
>> > +BDRVQuorumState *s = bs->opaque;
>> > +int i;
>> > +int64_t ret;
>> > +
>> > +/* return the length of the first available quorum file */
>> > +for (i =
> > +static int64_t quorum_getlength(BlockDriverState *bs)
> > +{
> > +BDRVQuorumState *s = bs->opaque;
> > +int i;
> > +int64_t ret;
> > +
> > +/* return the length of the first available quorum file */
> > +for (i = 0, ret = bdrv_getlength(s->bs[i]);
> > + ret == -ENOM
On Tue, Aug 7, 2012 at 2:44 PM, Benoît Canet wrote:
> Signed-off-by: Benoit Canet
> ---
> block/quorum.c | 17 +
> 1 file changed, 17 insertions(+)
>
> diff --git a/block/quorum.c b/block/quorum.c
> index 9da0432..5cd7083 100644
> --- a/block/quorum.c
> +++ b/block/quorum.c
> @
Signed-off-by: Benoit Canet
---
block/quorum.c | 17 +
1 file changed, 17 insertions(+)
diff --git a/block/quorum.c b/block/quorum.c
index 9da0432..5cd7083 100644
--- a/block/quorum.c
+++ b/block/quorum.c
@@ -118,12 +118,29 @@ static void quorum_close(BlockDriverState *bs)