Skip to content
  • Kevin Wolf's avatar
    28518102
    block: reopen: Document option precedence and refactor accordingly · 28518102
    Kevin Wolf authored
    
    
    The interesting part of reopening an image is from which sources the
    effective options should be taken, i.e. which options take precedence
    over which other options. This patch documents the precedence that will
    be implemented in the following patches.
    
    It also refactors bdrv_reopen_queue(), so that the top-level reopened
    node is handled the same way as children are. Option/flag inheritance
    from the parent becomes just one item in the list and is done at the
    beginning of the function, similar to how the other items are/will be
    handled.
    
    Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
    Reviewed-by: default avatarMax Reitz <mreitz@redhat.com>
    28518102
    block: reopen: Document option precedence and refactor accordingly
    Kevin Wolf authored
    
    
    The interesting part of reopening an image is from which sources the
    effective options should be taken, i.e. which options take precedence
    over which other options. This patch documents the precedence that will
    be implemented in the following patches.
    
    It also refactors bdrv_reopen_queue(), so that the top-level reopened
    node is handled the same way as children are. Option/flag inheritance
    from the parent becomes just one item in the list and is done at the
    beginning of the function, similar to how the other items are/will be
    handled.
    
    Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
    Reviewed-by: default avatarMax Reitz <mreitz@redhat.com>
Loading