[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH V20 2/8] make path_has_protocol non static
From: |
Dong Xu Wang |
Subject: |
[Qemu-devel] [PATCH V20 2/8] make path_has_protocol non static |
Date: |
Mon, 26 Aug 2013 00:06:14 +0800 |
We will use path_has_protocol outside block.c, so just make it public.
Reviewed-by: Michael Roth <address@hidden>
Signed-off-by: Dong Xu Wang <address@hidden>
---
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 "<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 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);
--
1.7.11.7
- [Qemu-devel] [PATCH V20 0/7] add-cow file format, Dong Xu Wang, 2013/08/25
- [Qemu-devel] [PATCH V20 1/8] docs: document for add-cow file format, Dong Xu Wang, 2013/08/25
- [Qemu-devel] [PATCH V20 2/8] make path_has_protocol non static,
Dong Xu Wang <=
- [Qemu-devel] [PATCH V20 3/8] qed_read_string to bdrv_read_string, Dong Xu Wang, 2013/08/25
- [Qemu-devel] [PATCH V20 4/8] rename qcow2_cache functions to block_cache, Dong Xu Wang, 2013/08/25
- [Qemu-devel] [PATCH V20 5/8] move qcow2-cache.c to block-cache.c, Dong Xu Wang, 2013/08/25
- [Qemu-devel] [PATCH V20 6/8] Make block-cache.c be common interface, Dong Xu Wang, 2013/08/25
- [Qemu-devel] [PATCH V20 7/8] add-cow file format core code, Dong Xu Wang, 2013/08/25
- [Qemu-devel] [PATCH V20 8/8] qemu-iotests: add add-cow iotests support, Dong Xu Wang, 2013/08/25