Skip to content
  • Alberto Garcia's avatar
    f87a0e29
    block: Add "read-only" to the options QDict · f87a0e29
    Alberto Garcia authored
    
    
    This adds the "read-only" option to the QDict. One important effect of
    this change is that when a child inherits options from its parent, the
    existing "read-only" mode can be preserved if it was explicitly set
    previously.
    
    This addresses scenarios like this:
    
       [E] <- [D] <- [C] <- [B] <- [A]
    
    In this case, if we reopen [D] with read-only=off, and later reopen
    [B], then [D] will not inherit read-only=on from its parent during the
    bdrv_reopen_queue_child() stage.
    
    The BDRV_O_RDWR flag is not removed yet, but its keep in sync with the
    value of the "read-only" option.
    
    Signed-off-by: default avatarAlberto Garcia <berto@igalia.com>
    Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
    f87a0e29
    block: Add "read-only" to the options QDict
    Alberto Garcia authored
    
    
    This adds the "read-only" option to the QDict. One important effect of
    this change is that when a child inherits options from its parent, the
    existing "read-only" mode can be preserved if it was explicitly set
    previously.
    
    This addresses scenarios like this:
    
       [E] <- [D] <- [C] <- [B] <- [A]
    
    In this case, if we reopen [D] with read-only=off, and later reopen
    [B], then [D] will not inherit read-only=on from its parent during the
    bdrv_reopen_queue_child() stage.
    
    The BDRV_O_RDWR flag is not removed yet, but its keep in sync with the
    value of the "read-only" option.
    
    Signed-off-by: default avatarAlberto Garcia <berto@igalia.com>
    Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
Loading