|
From: | Max Reitz |
Subject: | Re: [PATCH v14 02/13] block: add API function to insert a node |
Date: | Thu, 10 Dec 2020 18:33:56 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 |
On 04.12.20 23:07, Vladimir Sementsov-Ogievskiy wrote:
From: Andrey Shinkevich <andrey.shinkevich@virtuozzo.com> Provide API for insertion a node to backing chain. Suggested-by: Max Reitz <mreitz@redhat.com> Signed-off-by: Andrey Shinkevich <andrey.shinkevich@virtuozzo.com> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> --- include/block/block.h | 2 ++ block.c | 25 +++++++++++++++++++++++++ 2 files changed, 27 insertions(+)
[...]
diff --git a/block.c b/block.c index f1cedac362..b71c39f3e6 100644 --- a/block.c +++ b/block.c @@ -4698,6 +4698,31 @@ static void bdrv_delete(BlockDriverState *bs) g_free(bs); }+BlockDriverState *bdrv_insert_node(BlockDriverState *bs, QDict *node_options,+ int flags, Error **errp) +{ + BlockDriverState *new_node_bs; + Error *local_err = NULL; + + new_node_bs = bdrv_open(NULL, NULL, node_options, flags, errp);
s/ = / = / With that done: Reviewed-by: Max Reitz <mreitz@redhat.com>
[Prev in Thread] | Current Thread | [Next in Thread] |