From patchwork Thu Sep 15 14:52:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alberto Garcia X-Patchwork-Id: 9334057 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C79CA60839 for ; Thu, 15 Sep 2016 15:22:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B842D2995A for ; Thu, 15 Sep 2016 15:22:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AD06129961; Thu, 15 Sep 2016 15:22:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A36E32995A for ; Thu, 15 Sep 2016 15:22:54 +0000 (UTC) Received: from localhost ([::1]:35467 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkYV3-0005YE-NG for patchwork-qemu-devel@patchwork.kernel.org; Thu, 15 Sep 2016 11:22:53 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52298) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkY30-0006eR-Bk for qemu-devel@nongnu.org; Thu, 15 Sep 2016 10:53:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bkY2w-0003So-9N for qemu-devel@nongnu.org; Thu, 15 Sep 2016 10:53:53 -0400 Received: from smtp3.mundo-r.com ([212.51.32.191]:61950 helo=smtp4.mundo-r.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkY2w-0003Q9-0y; Thu, 15 Sep 2016 10:53:50 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2A+AwBotdpX/5tjdVtcHAEBBAEBCgEBgzoBAQEBAR6BU40zlXMBAQEBAQEFAYESAY9Zgi6CD4IDhh4CgVs4FAECAQEBAQEBAV4nhGICBCdSED8SPBsZiE4BwXIBAQgnhWmCSYdahRAFjyGKR49Zj2VIkBEeNoIuTxuBUm2HAQEBAQ X-IPAS-Result: A2A+AwBotdpX/5tjdVtcHAEBBAEBCgEBgzoBAQEBAR6BU40zlXMBAQEBAQEFAYESAY9Zgi6CD4IDhh4CgVs4FAECAQEBAQEBAV4nhGICBCdSED8SPBsZiE4BwXIBAQgnhWmCSYdahRAFjyGKR49Zj2VIkBEeNoIuTxuBUm2HAQEBAQ X-IronPort-AV: E=Sophos;i="5.30,339,1470693600"; d="scan'208";a="189830355" Received: from fanzine.igalia.com ([91.117.99.155]) by smtp4.mundo-r.com with ESMTP; 15 Sep 2016 16:53:24 +0200 Received: from a88-114-146-42.elisa-laajakaista.fi ([88.114.146.42] helo=perseus.local) by fanzine.igalia.com with esmtpsa (Cipher TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim) id 1bkY2V-0007dN-ME; Thu, 15 Sep 2016 16:53:24 +0200 Received: from berto by perseus.local with local (Exim 4.87) (envelope-from ) id 1bkY2I-00009V-36; Thu, 15 Sep 2016 17:53:10 +0300 From: Alberto Garcia To: qemu-devel@nongnu.org Date: Thu, 15 Sep 2016 17:52:59 +0300 Message-Id: X-Mailer: git-send-email 2.9.3 In-Reply-To: References: In-Reply-To: References: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 212.51.32.191 Subject: [Qemu-devel] [PATCH v2 1/7] block: Remove bdrv_is_snapshot X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kevin Wolf , Alberto Garcia , qemu-block@nongnu.org, Max Reitz Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP This is unnecessary and has been unused since 5433c24f0f9306c82ad9bcc. Signed-off-by: Alberto Garcia Reviewed-by: Kevin Wolf Reviewed-by: Eric Blake --- block.c | 5 ----- include/block/block.h | 1 - 2 files changed, 6 deletions(-) diff --git a/block.c b/block.c index 66ed1c0..1c75a6f 100644 --- a/block.c +++ b/block.c @@ -2965,11 +2965,6 @@ bool bdrv_debug_is_suspended(BlockDriverState *bs, const char *tag) return false; } -int bdrv_is_snapshot(BlockDriverState *bs) -{ - return !!(bs->open_flags & BDRV_O_SNAPSHOT); -} - /* backing_file can either be relative, or absolute, or a protocol. If it is * relative, it must be relative to the chain. So, passing in bs->filename * from a BDS as backing_file should not be done, as that may be relative to diff --git a/include/block/block.h b/include/block/block.h index 7edce5c..9f0399f 100644 --- a/include/block/block.h +++ b/include/block/block.h @@ -420,7 +420,6 @@ void bdrv_get_full_backing_filename_from_filename(const char *backed, const char *backing, char *dest, size_t sz, Error **errp); -int bdrv_is_snapshot(BlockDriverState *bs); int path_has_protocol(const char *path); int path_is_absolute(const char *path);