Skip to content
  • Paolo Bonzini's avatar
    blockdev: enable discard by default · 215e47b9
    Paolo Bonzini authored
    
    
    Because discard is now a host parameter, we can always fake it as enabled
    in the guest.  This is an extension of the current choice to ignore
    "not supported" errors from the host when discard_granularity is set
    to nonzero.
    
    The default granularity is set to the logical block size or 4k, whichever
    is largest, because cluster sizes below 4k are rarely used and 4K is a
    typical block size for files.
    
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
    215e47b9