Skip to content
  • Hanna Reitz's avatar
    3f072a7f
    mirror: Deal with filters · 3f072a7f
    Hanna Reitz authored
    
    
    This includes some permission limiting (for example, we only need to
    take the RESIZE permission for active commits where the base is smaller
    than the top).
    
    base_overlay is introduced so we can query bdrv_is_allocated_above() on
    it - we cannot do that with base itself, because a filter's block_status
    is the same as its child node, so if there are filters on base,
    bdrv_is_allocated_above() on base would return information including
    base.
    
    Use this opportunity to rename qmp_drive_mirror()'s "source" BDS to
    "target_backing_bs", because that is what it really refers to.
    
    Signed-off-by: default avatarMax Reitz <mreitz@redhat.com>
    3f072a7f
    mirror: Deal with filters
    Hanna Reitz authored
    
    
    This includes some permission limiting (for example, we only need to
    take the RESIZE permission for active commits where the base is smaller
    than the top).
    
    base_overlay is introduced so we can query bdrv_is_allocated_above() on
    it - we cannot do that with base itself, because a filter's block_status
    is the same as its child node, so if there are filters on base,
    bdrv_is_allocated_above() on base would return information including
    base.
    
    Use this opportunity to rename qmp_drive_mirror()'s "source" BDS to
    "target_backing_bs", because that is what it really refers to.
    
    Signed-off-by: default avatarMax Reitz <mreitz@redhat.com>
Loading