diff options
author | Fam Zheng <famz@redhat.com> | 2017-03-14 10:30:50 +0800 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2017-03-17 12:54:06 +0100 |
commit | c1cef67251d3e6ae275c0898ccf4cbcfe85d4e0b (patch) | |
tree | e66118024fe5e6618ffe966901a05862950da8e4 /blockdev.c | |
parent | fed414df9dc9abef040adfbd8c5956fb610edaa2 (diff) |
block: Always call bdrv_child_check_perm first
bdrv_child_set_perm alone is not very usable because the caller must
call bdrv_child_check_perm first. This is already encapsulated
conveniently in bdrv_child_try_set_perm, so remove the other prototypes
from the header and fix the one wrong caller, block/mirror.c.
Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'blockdev.c')
0 files changed, 0 insertions, 0 deletions