Received: from eggs.gnu.org ([140.186.70.92]:55758) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QjWHa-0006fu-LI for qemu-devel@nongnu.org; Wed, 20 Jul 2011 08:53:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QjWHZ-0001lU-7h for qemu-devel@nongnu.org; Wed, 20 Jul 2011 08:53:46 -0400 Received: from mail-vw0-f45.google.com ([209.85.212.45]:40037) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QjWHY-0001lQ-T5 for qemu-devel@nongnu.org; Wed, 20 Jul 2011 08:53:45 -0400 Received: by vws17 with SMTP id 17so144415vws.4 for ; Wed, 20 Jul 2011 05:53:44 -0700 (PDT) From: Frediano Ziglio Date: Wed, 20 Jul 2011 14:53:12 +0200 Message-Id: <1311166392-28933-1-git-send-email-freddy77@gmail.com> Subject: [Qemu-devel] [PATCH] removed unused function List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Frediano Ziglio Signed-off-by: Frediano Ziglio --- block.c | 13 ------------- block.h | 2 -- 2 files changed, 0 insertions(+), 15 deletions(-) diff --git a/block.c b/block.c index 24a25d5..b879d2f 100644 --- a/block.c +++ b/block.c @@ -1108,19 +1108,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 859d1d9..6f3e5d0 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); void bdrv_get_geometry(BlockDriverState *bs, uint64_t *nb_sectors_ptr); -- 1.7.1