diff options
author | Kevin Wolf <kwolf@redhat.com> | 2009-05-18 16:42:10 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-05-22 10:50:31 -0500 |
commit | 0e7e1989f7fced8e39f140e1958f0557b60d4532 (patch) | |
tree | 76bbcc1c26a05f4f6e430f9f844f9b3b350c13ba /block/vvfat.c | |
parent | d3f243676addaef6c8d818934565292c698f91cc (diff) |
Convert all block drivers to new bdrv_create
Now we can make use of the newly introduced option structures. Instead of
having bdrv_create carry more and more parameters (which are format specific in
most cases), just pass a option structure as defined by the driver itself.
bdrv_create2() contains an emulation of the old interface to simplify the
transition.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'block/vvfat.c')
-rw-r--r-- | block/vvfat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/block/vvfat.c b/block/vvfat.c index 2a8feb38d8..13960e95a6 100644 --- a/block/vvfat.c +++ b/block/vvfat.c @@ -2777,8 +2777,8 @@ static int enable_write_target(BDRVVVFATState *s) s->qcow_filename = qemu_malloc(1024); get_tmp_filename(s->qcow_filename, 1024); - if (bdrv_create(bdrv_find_format("qcow"), - s->qcow_filename, s->sector_count, "fat:", 0) < 0) + if (bdrv_create2(bdrv_find_format("qcow"), + s->qcow_filename, s->sector_count, "fat:", NULL, 0) < 0) return -1; s->qcow = bdrv_new(""); if (s->qcow == NULL || bdrv_open(s->qcow, s->qcow_filename, 0) < 0) |