Patchwork [V14,06/10] block: export function path_has_protocol()

login
register
mail settings
Submitter Wayne Xia
Date Jan. 23, 2013, 11:18 a.m.
Message ID <1358939887-22533-7-git-send-email-xiawenc@linux.vnet.ibm.com>
Download mbox | patch
Permalink /patch/214908/
State New
Headers show

Comments

Wayne Xia - Jan. 23, 2013, 11:18 a.m.
libqblock need to use it.

Signed-off-by: Wenchao Xia <xiawenc@linux.vnet.ibm.com>
---
 block.c               |    2 +-
 include/block/block.h |    2 ++
 2 files changed, 3 insertions(+), 1 deletions(-)

Patch

diff --git a/block.c b/block.c
index 6fa7c90..67afd6a 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 "<protocol>:" */
-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 ffd1936..7401f44 100644
--- a/include/block/block.h
+++ b/include/block/block.h
@@ -392,6 +392,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,