Re: [Qemu-devel] [PATCH 03/10] mirror: Fix permissions for removing mirror_top_bs

2017-03-06 Thread Eric Blake
On 03/06/2017 10:21 AM, Kevin Wolf wrote: > mirror_top_bs takes write permissions on its backing file, which can > make it impossible to attach that backing file node to another parent. > However, this is exactly what needs to be done in order to remove > mirror_top_bs from the backing chain. So gi

[Qemu-devel] [PATCH 03/10] mirror: Fix permissions for removing mirror_top_bs

2017-03-06 Thread Kevin Wolf
mirror_top_bs takes write permissions on its backing file, which can make it impossible to attach that backing file node to another parent. However, this is exactly what needs to be done in order to remove mirror_top_bs from the backing chain. So give up the write permission first. Signed-off-by: