]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
raw_bsd: add raw_create()
authorLaszlo Ersek <lersek@redhat.com>
Wed, 21 Aug 2013 10:41:19 +0000 (12:41 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 30 Aug 2013 13:28:52 +0000 (15:28 +0200)
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 <lersek@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/raw_bsd.c

index 19091a3ba2753c99ea51439c03a79d170396ad81..5bcbe71c00bf5d7a91a81ce8f6b4a3619932c6b0 100644 (file)
@@ -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();
+}