δΊ 2013-1-15 1:08, Luiz Capitulino ει:
On Mon, 14 Jan 2013 15:09:38 +0800
Wenchao Xia <xiaw...@linux.vnet.ibm.com> wrote:
This function will simply return the uri or filename used
to open the image.
Reviewed-by: Eric Blake <ebl...@redhat.com>
Signed-off-by: Wenchao Xia <xiaw...@linux.vnet.ibm.com>
---
block.c | 5 +++++
include/block/block.h | 1 +
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/block.c b/block.c
index 4e28c55..5f95da5 100644
--- a/block.c
+++ b/block.c
@@ -2967,6 +2967,11 @@ BlockStatsList *qmp_query_blockstats(Error **errp)
return head;
}
+const char *bdrv_get_filename(BlockDriverState *bs)
+{
bs can be const.
OK.
--
Best Regards
Wenchao Xia