From patchwork Thu Jan 21 12:40:37 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naphtali Sprei X-Patchwork-Id: 43431 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 09CC3B7CE2 for ; Thu, 21 Jan 2010 23:46:54 +1100 (EST) Received: from localhost ([127.0.0.1]:43904 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NXwR0-0004bS-MS for incoming@patchwork.ozlabs.org; Thu, 21 Jan 2010 07:46:50 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NXwLX-0002yz-Af for qemu-devel@nongnu.org; Thu, 21 Jan 2010 07:41:11 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NXwLS-0002vB-KG for qemu-devel@nongnu.org; Thu, 21 Jan 2010 07:41:10 -0500 Received: from [199.232.76.173] (port=37377 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NXwLS-0002v1-FS for qemu-devel@nongnu.org; Thu, 21 Jan 2010 07:41:06 -0500 Received: from mx1.redhat.com ([209.132.183.28]:56415) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NXwLS-00080A-1B for qemu-devel@nongnu.org; Thu, 21 Jan 2010 07:41:06 -0500 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o0LCf5hn018935 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 21 Jan 2010 07:41:05 -0500 Received: from localhost.localdomain (dhcp-0-60.tlv.redhat.com [10.35.0.60]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o0LCewTQ029585; Thu, 21 Jan 2010 07:41:04 -0500 From: Naphtali Sprei To: qemu-devel@nongnu.org Date: Thu, 21 Jan 2010 14:40:37 +0200 Message-Id: <1264077641-17902-4-git-send-email-nsprei@redhat.com> In-Reply-To: <1264077641-17902-3-git-send-email-nsprei@redhat.com> References: <1264077641-17902-1-git-send-email-nsprei@redhat.com> <1264077641-17902-2-git-send-email-nsprei@redhat.com> <1264077641-17902-3-git-send-email-nsprei@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.21 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Cc: Naphtali Sprei Subject: [Qemu-devel] [PATCH 1/3] No need anymoe for bdrv_set_read_only X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Naphtali Sprei --- block.c | 7 ------- block.h | 1 - 2 files changed, 0 insertions(+), 8 deletions(-) diff --git a/block.c b/block.c index 73c26ec..8378c18 100644 --- a/block.c +++ b/block.c @@ -1009,13 +1009,6 @@ int bdrv_is_read_only(BlockDriverState *bs) return bs->read_only; } -int bdrv_set_read_only(BlockDriverState *bs, int read_only) -{ - int ret = bs->read_only; - bs->read_only = read_only; - return ret; -} - int bdrv_is_sg(BlockDriverState *bs) { return bs->sg; diff --git a/block.h b/block.h index fd4e8dd..1aec453 100644 --- a/block.h +++ b/block.h @@ -147,7 +147,6 @@ int bdrv_get_type_hint(BlockDriverState *bs); int bdrv_get_translation_hint(BlockDriverState *bs); int bdrv_is_removable(BlockDriverState *bs); int bdrv_is_read_only(BlockDriverState *bs); -int bdrv_set_read_only(BlockDriverState *bs, int read_only); int bdrv_is_sg(BlockDriverState *bs); int bdrv_enable_write_cache(BlockDriverState *bs); int bdrv_is_inserted(BlockDriverState *bs);