]> Git Repo - qemu.git/commit - block/copy-on-read.c
copy-on-read: add filter drop function
authorAndrey Shinkevich <[email protected]>
Wed, 16 Dec 2020 06:16:53 +0000 (09:16 +0300)
committerMax Reitz <[email protected]>
Tue, 26 Jan 2021 10:26:54 +0000 (11:26 +0100)
commit16e09a21af7245abc82616010a96a48e637734db
tree49d8ad457052c438cea91ddf3c849d5c6867e395
parent8872ef78ab6d9cadfc9223bc3f3b8a1b86939bbc
copy-on-read: add filter drop function

Provide API for the COR-filter removal. Also, drop the filter child
permissions for an inactive state when the filter node is being
removed.
To insert the filter, the block generic layer function
bdrv_insert_node() can be used.
The new function bdrv_cor_filter_drop() may be considered as an
intermediate solution before the QEMU permission update system has
overhauled. Then we are able to implement the API function
bdrv_remove_node() on the block generic layer.

Signed-off-by: Andrey Shinkevich <[email protected]>
Reviewed-by: Vladimir Sementsov-Ogievskiy <[email protected]>
Reviewed-by: Max Reitz <[email protected]>
Message-Id: <20201216061703[email protected]>
Signed-off-by: Max Reitz <[email protected]>
block/copy-on-read.c
block/copy-on-read.h [new file with mode: 0644]
This page took 0.027755 seconds and 4 git commands to generate.