Skip to content
  • Kevin Wolf's avatar
    db95dbba
    block: BdrvChildRole.attach/detach() callbacks · db95dbba
    Kevin Wolf authored
    
    
    Backing files are somewhat special compared to other kinds of children
    because they are attached and detached using bdrv_set_backing_hd()
    rather than the normal set of functions, which does a few more things
    like setting backing blockers, toggling the BDRV_O_NO_BACKING flag,
    setting parent_bs->backing_file, etc.
    
    These special features are a reason why change_parent_backing_link()
    can't handle backing files yet. With abstracting the additional features
    into .attach/.detach callbacks, we get a step closer to a function that
    can actually deal with this.
    
    Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
    Reviewed-by: default avatarMax Reitz <mreitz@redhat.com>
    Acked-by: default avatarFam Zheng <famz@redhat.com>
    db95dbba
    block: BdrvChildRole.attach/detach() callbacks
    Kevin Wolf authored
    
    
    Backing files are somewhat special compared to other kinds of children
    because they are attached and detached using bdrv_set_backing_hd()
    rather than the normal set of functions, which does a few more things
    like setting backing blockers, toggling the BDRV_O_NO_BACKING flag,
    setting parent_bs->backing_file, etc.
    
    These special features are a reason why change_parent_backing_link()
    can't handle backing files yet. With abstracting the additional features
    into .attach/.detach callbacks, we get a step closer to a function that
    can actually deal with this.
    
    Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
    Reviewed-by: default avatarMax Reitz <mreitz@redhat.com>
    Acked-by: default avatarFam Zheng <famz@redhat.com>
Loading