replication: Fix replication open fail
replication_child_perm request write permissions for all child which will lead bdrv_check_perm fail. replication_child_perm() should request write permissions only if it is writable itself. Signed-off-by: NWang Guang <wang.guang55@zte.com.cn> Signed-off-by: NWang Yong <wang.yong155@zte.com.cn> Reviewed-by: NXie Changlong <xiechanglong@cmss.chinamobile.com> Signed-off-by: NKevin Wolf <kwolf@redhat.com>
Showing
想要评论请 注册 或 登录