commit | 234ac1a9025bcfcc532449f72a97b3d4754d466c | [log] [tgz] |
---|---|---|
author | Kevin Wolf <kwolf@redhat.com> | Thu Mar 02 18:43:00 2017 +0100 |
committer | Kevin Wolf <kwolf@redhat.com> | Tue Mar 07 14:53:28 2017 +0100 |
tree | 3497b9e687a0575de82e3aeecd0d303c74b9b6ca | |
parent | 46181129eac9a56d9a948667282dd03d5015f096 [diff] |
block: Handle permission errors in change_parent_backing_link() Instead of just trying to change parents by parent over to reference @to instead of @from, and abort()ing whenever the permissions don't allow this, do proper permission checking beforehand and pass any error to the callers. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Fam Zheng <famz@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>