fixed block close() method prototype
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1068 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
c9a621176e
commit
e2731add29
|
@ -202,7 +202,7 @@ static int cow_write(BlockDriverState *bs, int64_t sector_num,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int cow_close(BlockDriverState *bs)
|
static void cow_close(BlockDriverState *bs)
|
||||||
{
|
{
|
||||||
BDRVCowState *s = bs->opaque;
|
BDRVCowState *s = bs->opaque;
|
||||||
munmap(s->cow_bitmap_addr, s->cow_bitmap_size);
|
munmap(s->cow_bitmap_addr, s->cow_bitmap_size);
|
||||||
|
|
|
@ -521,7 +521,7 @@ static int qcow_write(BlockDriverState *bs, int64_t sector_num,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int qcow_close(BlockDriverState *bs)
|
static void qcow_close(BlockDriverState *bs)
|
||||||
{
|
{
|
||||||
BDRVQcowState *s = bs->opaque;
|
BDRVQcowState *s = bs->opaque;
|
||||||
qemu_free(s->l1_table);
|
qemu_free(s->l1_table);
|
||||||
|
|
|
@ -258,7 +258,7 @@ static int vmdk_write(BlockDriverState *bs, int64_t sector_num,
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int vmdk_close(BlockDriverState *bs)
|
static void vmdk_close(BlockDriverState *bs)
|
||||||
{
|
{
|
||||||
BDRVVmdkState *s = bs->opaque;
|
BDRVVmdkState *s = bs->opaque;
|
||||||
qemu_free(s->l1_table);
|
qemu_free(s->l1_table);
|
||||||
|
|
2
block.c
2
block.c
|
@ -554,7 +554,7 @@ static int raw_write(BlockDriverState *bs, int64_t sector_num,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int raw_close(BlockDriverState *bs)
|
static void raw_close(BlockDriverState *bs)
|
||||||
{
|
{
|
||||||
BDRVRawState *s = bs->opaque;
|
BDRVRawState *s = bs->opaque;
|
||||||
close(s->fd);
|
close(s->fd);
|
||||||
|
|
|
@ -33,7 +33,7 @@ struct BlockDriver {
|
||||||
uint8_t *buf, int nb_sectors);
|
uint8_t *buf, int nb_sectors);
|
||||||
int (*bdrv_write)(BlockDriverState *bs, int64_t sector_num,
|
int (*bdrv_write)(BlockDriverState *bs, int64_t sector_num,
|
||||||
const uint8_t *buf, int nb_sectors);
|
const uint8_t *buf, int nb_sectors);
|
||||||
int (*bdrv_close)(BlockDriverState *bs);
|
void (*bdrv_close)(BlockDriverState *bs);
|
||||||
int (*bdrv_create)(const char *filename, int64_t total_sectors,
|
int (*bdrv_create)(const char *filename, int64_t total_sectors,
|
||||||
const char *backing_file, int flags);
|
const char *backing_file, int flags);
|
||||||
int (*bdrv_is_allocated)(BlockDriverState *bs, int64_t sector_num,
|
int (*bdrv_is_allocated)(BlockDriverState *bs, int64_t sector_num,
|
||||||
|
|
Reference in New Issue