From patchwork Sun Aug 25 16:06:14 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Wang X-Patchwork-Id: 269712 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 820DC2C00B7 for ; Mon, 26 Aug 2013 02:09:02 +1000 (EST) Received: from localhost ([::1]:46700 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VDcs8-000566-II for incoming@patchwork.ozlabs.org; Sun, 25 Aug 2013 12:09:00 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44489) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VDcpx-00029S-Rj for qemu-devel@nongnu.org; Sun, 25 Aug 2013 12:06:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VDcpp-00029s-BL for qemu-devel@nongnu.org; Sun, 25 Aug 2013 12:06:45 -0400 Received: from mail-pd0-x22a.google.com ([2607:f8b0:400e:c02::22a]:36022) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VDcpp-00029Q-4h for qemu-devel@nongnu.org; Sun, 25 Aug 2013 12:06:37 -0400 Received: by mail-pd0-f170.google.com with SMTP id x10so2520165pdj.15 for ; Sun, 25 Aug 2013 09:06:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=VWxNknQJIVXoS0fVTHCASteadNB0KftgXBqcYH5Lb+w=; b=dg/3brZmsZuYp89RgyAo9DshVcHztygw53JKDe/qFTThWKK7I54uRsXRrUQ3p5dMim Wq83T7b7nbImZP4v5fzR9RIZ+wHhy12bE2Ma3vhWRfESUScCRWb4JJMqFG0tQ6irOZUH t6RzPabYYs5tra5JcQvoUO9JWA/RBKld3mbzmhnsiruSPxRZl7wPjkE5RvaLvQXWdeDo g9e112J9NJdk3RuAYj8N/4r9yo+DxDuWXEKpI6ijW1Lcppyb+7zpORVOmgmY94W7BztD mQqPpuDX/1JLznqjtCgJUqgF0pAVfSK92N8Y+zMPQ9gZDgIbGOSONJ6NqZqsJXqoDdPc X6eQ== X-Received: by 10.68.160.5 with SMTP id xg5mr1389140pbb.173.1377446796494; Sun, 25 Aug 2013 09:06:36 -0700 (PDT) Received: from 11.wdongxu.kvm58 ([202.108.130.153]) by mx.google.com with ESMTPSA id oc10sm12666416pbb.3.1969.12.31.16.00.00 (version=TLSv1 cipher=RC4-SHA bits=128/128); Sun, 25 Aug 2013 09:06:36 -0700 (PDT) From: Dong Xu Wang To: qemu-devel@nongnu.org Date: Mon, 26 Aug 2013 00:06:14 +0800 Message-Id: <1377446780-15360-3-git-send-email-wdongxu@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.11.7 In-Reply-To: <1377446780-15360-1-git-send-email-wdongxu@linux.vnet.ibm.com> References: <1377446780-15360-1-git-send-email-wdongxu@linux.vnet.ibm.com> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c02::22a Cc: kwolf@redhat.com, Dong Xu Wang , wdongxu@cn.ibm.com, stefanha@redhat.com Subject: [Qemu-devel] [PATCH V20 2/8] make path_has_protocol non static 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 We will use path_has_protocol outside block.c, so just make it public. Reviewed-by: Michael Roth Signed-off-by: Dong Xu Wang --- block.c | 2 +- include/block/block.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/block.c b/block.c index fcc8870..b2711e9 100644 --- a/block.c +++ b/block.c @@ -189,7 +189,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 476d168..f025185 100644 --- a/include/block/block.h +++ b/include/block/block.h @@ -343,6 +343,7 @@ void bdrv_img_create(const char *filename, const char *fmt, void bdrv_set_buffer_alignment(BlockDriverState *bs, int align); void *qemu_blockalign(BlockDriverState *bs, size_t size); bool bdrv_qiov_is_aligned(BlockDriverState *bs, QEMUIOVector *qiov); +int path_has_protocol(const char *path); struct HBitmapIter; void bdrv_set_dirty_tracking(BlockDriverState *bs, int granularity);