[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 13/29] block: Removed unused function bdrv_write_syn
From: |
Kevin Wolf |
Subject: |
[Qemu-devel] [PATCH 13/29] block: Removed unused function bdrv_write_sync |
Date: |
Wed, 3 Aug 2011 16:14:08 +0200 |
From: Frediano Ziglio <address@hidden>
Signed-off-by: Frediano Ziglio <address@hidden>
Signed-off-by: Kevin Wolf <address@hidden>
---
block.c | 13 -------------
block.h | 2 --
2 files changed, 0 insertions(+), 15 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)
*/
diff --git a/block.h b/block.h
index 59cc410..e672bc6 100644
--- a/block.h
+++ b/block.h
@@ -85,8 +85,6 @@ int bdrv_pwrite(BlockDriverState *bs, int64_t offset,
const void *buf, int count);
int bdrv_pwrite_sync(BlockDriverState *bs, int64_t offset,
const void *buf, int count);
-int bdrv_write_sync(BlockDriverState *bs, int64_t sector_num,
- const uint8_t *buf, int nb_sectors);
int bdrv_truncate(BlockDriverState *bs, int64_t offset);
int64_t bdrv_getlength(BlockDriverState *bs);
int64_t bdrv_get_allocated_file_size(BlockDriverState *bs);
--
1.7.6
- [Qemu-devel] [PATCH 02/29] block: Reset device model callbacks on detach, (continued)
- [Qemu-devel] [PATCH 02/29] block: Reset device model callbacks on detach, Kevin Wolf, 2011/08/03
- [Qemu-devel] [PATCH 04/29] block: Make BlockDriver method bdrv_set_locked() return void, Kevin Wolf, 2011/08/03
- [Qemu-devel] [PATCH 03/29] block/raw-win32: Drop disabled code for removable host devices, Kevin Wolf, 2011/08/03
- [Qemu-devel] [PATCH 05/29] block: Make BlockDriver method bdrv_eject() return void, Kevin Wolf, 2011/08/03
- [Qemu-devel] [PATCH 06/29] block: Don't let locked flag prevent medium load, Kevin Wolf, 2011/08/03
- [Qemu-devel] [PATCH 07/29] block/vpc.c: Detect too-large vpc file, Kevin Wolf, 2011/08/03
- [Qemu-devel] [PATCH 09/29] scsi: Remove references to SET_WINDOW, Kevin Wolf, 2011/08/03
- [Qemu-devel] [PATCH 12/29] scsi-disk: Remove 'drive_kind', Kevin Wolf, 2011/08/03
- [Qemu-devel] [PATCH 11/29] scsi: Sanitize command definitions, Kevin Wolf, 2011/08/03
- [Qemu-devel] [PATCH 08/29] scsi-disk: Codingstyle fixes, Kevin Wolf, 2011/08/03
- [Qemu-devel] [PATCH 13/29] block: Removed unused function bdrv_write_sync,
Kevin Wolf <=
- [Qemu-devel] [PATCH 14/29] raw-posix: Typo fix, Kevin Wolf, 2011/08/03
- [Qemu-devel] [PATCH 10/29] scsi: Remove REZERO_UNIT emulation, Kevin Wolf, 2011/08/03
- [Qemu-devel] [PATCH 15/29] raw-posix: Always check paio_init result, Kevin Wolf, 2011/08/03
- [Qemu-devel] [PATCH 18/29] coroutine: add test-coroutine automated tests, Kevin Wolf, 2011/08/03
- [Qemu-devel] [PATCH 16/29] coroutine: introduce coroutines, Kevin Wolf, 2011/08/03
- [Qemu-devel] [PATCH 22/29] block: Add bdrv_co_readv/writev emulation, Kevin Wolf, 2011/08/03
- [Qemu-devel] [PATCH 19/29] coroutine: add test-coroutine --benchmark-lifecycle, Kevin Wolf, 2011/08/03
- [Qemu-devel] [PATCH 20/29] block: Add bdrv_co_readv/writev, Kevin Wolf, 2011/08/03
- [Qemu-devel] [PATCH 21/29] block: Emulate AIO functions with bdrv_co_readv/writev, Kevin Wolf, 2011/08/03
- [Qemu-devel] [PATCH 29/29] block: Use bdrv_co_* instead of synchronous versions in coroutines, Kevin Wolf, 2011/08/03