From patchwork Thu Jan 31 08:53:46 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wayne Xia X-Patchwork-Id: 217127 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id CDE842C007A for ; Thu, 31 Jan 2013 19:56:59 +1100 (EST) Received: from localhost ([::1]:42926 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U0px3-0004tT-Ru for incoming@patchwork.ozlabs.org; Thu, 31 Jan 2013 03:56:57 -0500 Received: from eggs.gnu.org ([208.118.235.92]:38850) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U0pw2-0002yn-I4 for qemu-devel@nongnu.org; Thu, 31 Jan 2013 03:55:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U0pw1-0003gt-Gl for qemu-devel@nongnu.org; Thu, 31 Jan 2013 03:55:54 -0500 Received: from e23smtp05.au.ibm.com ([202.81.31.147]:36382) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U0pw0-0003gS-QZ for qemu-devel@nongnu.org; Thu, 31 Jan 2013 03:55:53 -0500 Received: from /spool/local by e23smtp05.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 31 Jan 2013 18:52:17 +1000 Received: from d23dlp02.au.ibm.com (202.81.31.213) by e23smtp05.au.ibm.com (202.81.31.211) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Thu, 31 Jan 2013 18:52:17 +1000 Received: from d23relay03.au.ibm.com (d23relay03.au.ibm.com [9.190.235.21]) by d23dlp02.au.ibm.com (Postfix) with ESMTP id A24382BB004A for ; Thu, 31 Jan 2013 19:55:48 +1100 (EST) Received: from d23av03.au.ibm.com (d23av03.au.ibm.com [9.190.234.97]) by d23relay03.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r0V8tl0j2752976 for ; Thu, 31 Jan 2013 19:55:47 +1100 Received: from d23av03.au.ibm.com (loopback [127.0.0.1]) by d23av03.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id r0V8tlAg013367 for ; Thu, 31 Jan 2013 19:55:48 +1100 Received: from RH63Wenchao (wenchaox.cn.ibm.com [9.115.122.102]) by d23av03.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id r0V8rvOR010911; Thu, 31 Jan 2013 19:55:46 +1100 From: Wenchao Xia To: qemu-devel@nongnu.org Date: Thu, 31 Jan 2013 16:53:46 +0800 Message-Id: <1359622430-3936-7-git-send-email-xiawenc@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1359622430-3936-1-git-send-email-xiawenc@linux.vnet.ibm.com> References: <1359622430-3936-1-git-send-email-xiawenc@linux.vnet.ibm.com> X-Content-Scanned: Fidelis XPS MAILER x-cbid: 13013108-1396-0000-0000-0000027CA883 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 202.81.31.147 Cc: kwolf@redhat.com, pbonzini@redhat.com, aliguori@us.ibm.com, Wenchao Xia , stefanha@gmail.com Subject: [Qemu-devel] [PATCH V17 06/10] block: export function path_has_protocol() X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org libqblock need to use it. Signed-off-by: Wenchao Xia --- block.c | 2 +- include/block/block.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletions(-) diff --git a/block.c b/block.c index ba67c0d..44db62f 100644 --- a/block.c +++ b/block.c @@ -195,7 +195,7 @@ static void bdrv_io_limits_intercept(BlockDriverState *bs, } /* check if the path starts with ":" */ -static int path_has_protocol(const char *path) +int path_has_protocol(const char *path) { const char *p; diff --git a/include/block/block.h b/include/block/block.h index 5c3b911..40b63b1 100644 --- a/include/block/block.h +++ b/include/block/block.h @@ -395,6 +395,8 @@ void bdrv_acct_start(BlockDriverState *bs, BlockAcctCookie *cookie, int64_t bytes, enum BlockAcctType type); void bdrv_acct_done(BlockDriverState *bs, BlockAcctCookie *cookie); +int path_has_protocol(const char *path); + typedef enum { BLKDBG_L1_UPDATE,