From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45961) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VC5op-0000a2-1t for qemu-devel@nongnu.org; Wed, 21 Aug 2013 06:39:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VC5oh-0002nZ-Mc for qemu-devel@nongnu.org; Wed, 21 Aug 2013 06:39:14 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59043) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VC5oh-0002nJ-EW for qemu-devel@nongnu.org; Wed, 21 Aug 2013 06:39:07 -0400 From: Laszlo Ersek Date: Wed, 21 Aug 2013 12:41:19 +0200 Message-Id: <1377081683-1600-4-git-send-email-lersek@redhat.com> In-Reply-To: <1377081683-1600-1-git-send-email-lersek@redhat.com> References: <1377081683-1600-1-git-send-email-lersek@redhat.com> Subject: [Qemu-devel] [PATCH v2 3/7] raw_bsd: add raw_create() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: kwolf@redhat.com, stefanha@redhat.com, pbonzini@redhat.com, hch@lst.de, anthony@codemonkey.ws, qemu-devel@nongnu.org On 08/05/13 15:03, Paolo Bonzini wrote: > > [...] > > 2) This is also a simple forwarder function: > > .bdrv_create > > but there is no BlockDriverState argument so the forwarded-to function > does not have a bs->file argument either. The forwarded-to function is > bdrv_create_file. Signed-off-by: Laszlo Ersek --- block/raw_bsd.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/block/raw_bsd.c b/block/raw_bsd.c index 19091a3..5bcbe71 100644 --- a/block/raw_bsd.c +++ b/block/raw_bsd.c @@ -108,3 +108,7 @@ static TYPE raw_has_zero_init(BlockDriverState *bs) return bdrv_has_zero_init(bs->file); } +static TYPE raw_create(void) +{ + return bdrv_create_file(); +} -- 1.7.1