Skip to content
  • Kevin Wolf's avatar
    9384a444
    block: Make auto-read-only=on default for -drive · 9384a444
    Kevin Wolf authored
    
    
    While we want machine interfaces like -blockdev and QMP blockdev-add to
    add as little auto-detection as possible so that management tools are
    explicit about their needs, -drive is a convenience option for human
    users. Enabling auto-read-only=on by default there enables users to use
    read-only images for read-only guest devices without having to specify
    read-only=on explicitly. If they try to attach the image to a read-write
    device, they will still get an error message.
    
    Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
    Reviewed-by: default avatarEric Blake <eblake@redhat.com>
    9384a444
    block: Make auto-read-only=on default for -drive
    Kevin Wolf authored
    
    
    While we want machine interfaces like -blockdev and QMP blockdev-add to
    add as little auto-detection as possible so that management tools are
    explicit about their needs, -drive is a convenience option for human
    users. Enabling auto-read-only=on by default there enables users to use
    read-only images for read-only guest devices without having to specify
    read-only=on explicitly. If they try to attach the image to a read-write
    device, they will still get an error message.
    
    Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
    Reviewed-by: default avatarEric Blake <eblake@redhat.com>
Loading