• K
    block: Remove BDRV_O_CACHE_WB · 61de4c68
    Kevin Wolf 提交于
    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: NKevin Wolf <kwolf@redhat.com>
    Reviewed-by: NMax Reitz <mreitz@redhat.com>
    61de4c68
blockdev.c 127.5 KB