Re: [Qemu-devel] [RFC V2 05/10] quorum: Add quorum_getlength().

2012-08-09 Thread Stefan Hajnoczi
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 =

Re: [Qemu-devel] [RFC V2 05/10] quorum: Add quorum_getlength().

2012-08-09 Thread Benoît Canet
> > +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

Re: [Qemu-devel] [RFC V2 05/10] quorum: Add quorum_getlength().

2012-08-08 Thread Stefan Hajnoczi
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 > @

[Qemu-devel] [RFC V2 05/10] quorum: Add quorum_getlength().

2012-08-07 Thread Benoît Canet
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)