aboutsummaryrefslogtreecommitdiff
path: root/block.c
diff options
context:
space:
mode:
authorFrediano Ziglio <freddy77@gmail.com>2011-07-27 20:12:00 +0200
committerKevin Wolf <kwolf@redhat.com>2011-08-01 12:10:29 +0200
commit5bf3f8e4f71e46f80b76dc8a03cc0c37cad5cde0 (patch)
tree5948a344ba3c0ff315a736db593a277f44352697 /block.c
parentf37bd73b76e7f1e300e6acfe1bb6d3b2bc63714b (diff)
downloadqemu-5bf3f8e4f71e46f80b76dc8a03cc0c37cad5cde0.zip
qemu-5bf3f8e4f71e46f80b76dc8a03cc0c37cad5cde0.tar.gz
qemu-5bf3f8e4f71e46f80b76dc8a03cc0c37cad5cde0.tar.bz2
block: Removed unused function bdrv_write_sync
Signed-off-by: Frediano Ziglio <freddy77@gmail.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block.c')
-rw-r--r--block.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/block.c b/block.c
index 8859f9b..4c66b2c 100644
--- a/block.c
+++ b/block.c
@@ -1110,19 +1110,6 @@ int bdrv_pwrite_sync(BlockDriverState *bs, int64_t offset,
return 0;
}
-/*
- * Writes to the file and ensures that no writes are reordered across this
- * request (acts as a barrier)
- *
- * Returns 0 on success, -errno in error cases.
- */
-int bdrv_write_sync(BlockDriverState *bs, int64_t sector_num,
- const uint8_t *buf, int nb_sectors)
-{
- return bdrv_pwrite_sync(bs, BDRV_SECTOR_SIZE * sector_num,
- buf, BDRV_SECTOR_SIZE * nb_sectors);
-}
-
/**
* Truncate file to 'offset' bytes (needed only for file protocols)
*/