Skip to content
  • Kevin Wolf's avatar
    block: Remove BDRV_O_CACHE_WB · 61de4c68
    Kevin Wolf authored
    
    
    The previous patches have successively made blk->enable_write_cache the
    true source for the information whether a writethrough mode must be
    implemented. The corresponding BDRV_O_CACHE_WB is only useless baggage
    we're carrying around, so now's the time to remove it.
    
    At the same time, we remove the 'cache.writeback' option parsing on the
    BDS level as the only effect was setting the BDRV_O_CACHE_WB flag.
    
    This change requires test cases that explicitly enabled the option to
    drop it. Other than that and the change of the error message when
    writethrough is enabled on the BDS level (from "Can't set writethrough
    mode" to "doesn't support the option"), there should be no change in
    behaviour.
    
    Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
    Reviewed-by: default avatarMax Reitz <mreitz@redhat.com>
    61de4c68