Skip to content

Commit

Permalink
raw_bsd: add raw_create()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
lersek authored and kevmw committed Aug 30, 2013
1 parent 9eaafd9 commit 1565262
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions block/raw_bsd.c
Expand Up @@ -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();
}

0 comments on commit 1565262

Please sign in to comment.