From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57249) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WG91y-0001hD-C9 for qemu-devel@nongnu.org; Wed, 19 Feb 2014 10:25:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WG91t-0007ad-41 for qemu-devel@nongnu.org; Wed, 19 Feb 2014 10:25:50 -0500 Received: from lnantes-156-75-100-125.w80-12.abo.wanadoo.fr ([80.12.84.125]:50325 helo=paradis.irqsave.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WG91s-0007a9-SM for qemu-devel@nongnu.org; Wed, 19 Feb 2014 10:25:45 -0500 Date: Wed, 19 Feb 2014 16:25:42 +0100 From: =?iso-8859-1?Q?Beno=EEt?= Canet Message-ID: <20140219152542.GA20622@irqsave.net> References: <1392817351-22148-1-git-send-email-famz@redhat.com> <1392817351-22148-2-git-send-email-famz@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <1392817351-22148-2-git-send-email-famz@redhat.com> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v14 01/14] block: Add BlockOpType enum List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng Cc: kwolf@redhat.com, benoit.canet@irqsave.net, armbru@redhat.com, qemu-devel@nongnu.org, rjones@redhat.com, imain@redhat.com, stefanha@redhat.com, pbonzini@redhat.com The Wednesday 19 Feb 2014 =E0 21:42:18 (+0800), Fam Zheng wrote : > This adds the enum of all the operations that can be taken on a block > device. >=20 > Signed-off-by: Fam Zheng > --- > include/block/block.h | 19 +++++++++++++++++++ > 1 file changed, 19 insertions(+) >=20 > diff --git a/include/block/block.h b/include/block/block.h > index 780f48b..8820735 100644 > --- a/include/block/block.h > +++ b/include/block/block.h > @@ -154,6 +154,25 @@ typedef struct BDRVReopenState { > void *opaque; > } BDRVReopenState; > =20 > +/* > + * Block operation types > + */ > +typedef enum BlockOpType { > + BLOCK_OP_TYPE_BACKUP_SOURCE, > + BLOCK_OP_TYPE_BACKUP_TARGET, > + BLOCK_OP_TYPE_CHANGE, > + BLOCK_OP_TYPE_COMMIT, > + BLOCK_OP_TYPE_DATAPLANE, > + BLOCK_OP_TYPE_DRIVE_DEL, > + BLOCK_OP_TYPE_EJECT, > + BLOCK_OP_TYPE_EXTERNAL_SNAPSHOT, > + BLOCK_OP_TYPE_INTERNAL_SNAPSHOT, > + BLOCK_OP_TYPE_INTERNAL_SNAPSHOT_DELETE, > + BLOCK_OP_TYPE_MIRROR, > + BLOCK_OP_TYPE_RESIZE, > + BLOCK_OP_TYPE_STREAM, > + BLOCK_OP_TYPE_MAX, > +} BlockOpType; > =20 > void bdrv_iostatus_enable(BlockDriverState *bs); > void bdrv_iostatus_reset(BlockDriverState *bs); > --=20 > 1.8.5.4 >=20 Reviewed-by: Benoit Canet