mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 18:44:58 -06:00
vpc: Implement bdrv_flush
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
78ced65e6e
commit
4a4111851f
1 changed files with 13 additions and 8 deletions
|
@ -439,6 +439,10 @@ static int vpc_write(BlockDriverState *bs, int64_t sector_num,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int vpc_flush(BlockDriverState *bs)
|
||||||
|
{
|
||||||
|
return bdrv_flush(bs->file);
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Calculates the number of cylinders, heads and sectors per cylinder
|
* Calculates the number of cylinders, heads and sectors per cylinder
|
||||||
|
@ -624,6 +628,7 @@ static BlockDriver bdrv_vpc = {
|
||||||
.bdrv_open = vpc_open,
|
.bdrv_open = vpc_open,
|
||||||
.bdrv_read = vpc_read,
|
.bdrv_read = vpc_read,
|
||||||
.bdrv_write = vpc_write,
|
.bdrv_write = vpc_write,
|
||||||
|
.bdrv_flush = vpc_flush,
|
||||||
.bdrv_close = vpc_close,
|
.bdrv_close = vpc_close,
|
||||||
.bdrv_create = vpc_create,
|
.bdrv_create = vpc_create,
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue