diff options
author | Kevin Wolf <kwolf@redhat.com> | 2017-03-06 16:03:00 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2017-03-07 14:53:28 +0100 |
commit | 0bf74767ff7f0ae23615162807961c5d7e73507c (patch) | |
tree | 69561abe6f440469060b87a00d3cb36db85a107c /blockdev.c | |
parent | 7d9fcb391c7898fb1417d84eba41d3d48bd76605 (diff) |
mirror: Fix permissions for removing mirror_top_bs
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: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'blockdev.c')
0 files changed, 0 insertions, 0 deletions