Revision 4a411185
b/block/vpc.c | ||
---|---|---|
439 | 439 |
return 0; |
440 | 440 |
} |
441 | 441 |
|
442 |
static int vpc_flush(BlockDriverState *bs) |
|
443 |
{ |
|
444 |
return bdrv_flush(bs->file); |
|
445 |
} |
|
442 | 446 |
|
443 | 447 |
/* |
444 | 448 |
* Calculates the number of cylinders, heads and sectors per cylinder |
... | ... | |
618 | 622 |
}; |
619 | 623 |
|
620 | 624 |
static BlockDriver bdrv_vpc = { |
621 |
.format_name = "vpc", |
|
622 |
.instance_size = sizeof(BDRVVPCState), |
|
623 |
.bdrv_probe = vpc_probe, |
|
624 |
.bdrv_open = vpc_open, |
|
625 |
.bdrv_read = vpc_read, |
|
626 |
.bdrv_write = vpc_write, |
|
627 |
.bdrv_close = vpc_close, |
|
628 |
.bdrv_create = vpc_create, |
|
625 |
.format_name = "vpc", |
|
626 |
.instance_size = sizeof(BDRVVPCState), |
|
627 |
.bdrv_probe = vpc_probe, |
|
628 |
.bdrv_open = vpc_open, |
|
629 |
.bdrv_read = vpc_read, |
|
630 |
.bdrv_write = vpc_write, |
|
631 |
.bdrv_flush = vpc_flush, |
|
632 |
.bdrv_close = vpc_close, |
|
633 |
.bdrv_create = vpc_create, |
|
629 | 634 |
|
630 | 635 |
.create_options = vpc_create_options, |
631 | 636 |
}; |
Also available in: Unified diff