projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8a2e5e
)
vvfat: convert to .bdrv_co_is_allocated()
author
Stefan Hajnoczi
<stefanha@linux.vnet.ibm.com>
Mon, 14 Nov 2011 12:44:22 +0000
(12:44 +0000)
committer
Kevin Wolf
<kwolf@redhat.com>
Mon, 5 Dec 2011 13:51:37 +0000
(14:51 +0100)
It is trivial to switch from the synchronous .bdrv_is_allocated()
interface to .bdrv_co_is_allocated() since vvfat_is_allocated() does not
block.
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/vvfat.c
patch
|
blob
|
history
diff --git
a/block/vvfat.c
b/block/vvfat.c
index a310ce8c3ef99f76cb74943a8934267df6a5d833..eeffc4a4a81ce370eb16da642243e550fd90d527 100644
(file)
--- a/
block/vvfat.c
+++ b/
block/vvfat.c
@@
-2758,7
+2758,7
@@
static coroutine_fn int vvfat_co_write(BlockDriverState *bs, int64_t sector_num,
return ret;
}
-static int
vvfat
_is_allocated(BlockDriverState *bs,
+static int
coroutine_fn vvfat_co
_is_allocated(BlockDriverState *bs,
int64_t sector_num, int nb_sectors, int* n)
{
BDRVVVFATState* s = bs->opaque;
@@
-2855,7
+2855,7
@@
static BlockDriver bdrv_vvfat = {
.bdrv_read = vvfat_co_read,
.bdrv_write = vvfat_co_write,
.bdrv_close = vvfat_close,
- .bdrv_
is_allocated = vvfat
_is_allocated,
+ .bdrv_
co_is_allocated = vvfat_co
_is_allocated,
.protocol_name = "fat",
};