• Mikulas Patocka's avatar
    dm log: introduce flush_failed variable · 5adc78d0
    Mikulas Patocka authored
    Introduce "flush failed" variable.  When a flush before clearing a bit
    in the log fails, we don't know anything about which which regions are
    in-sync and which not.
    
    So we need to set all regions as not-in-sync and set the variable
    "flush_failed" to prevent setting the in-sync bit in the future.
    
    A target reload is the only way to get out of this situation.
    
    The variable will be set in following patches.
    Signed-off-by: default avatarMikulas Patocka <mpatocka@redhat.com>
    Signed-off-by: default avatarAlasdair G Kergon <agk@redhat.com>
    5adc78d0
dm-log.c 19.5 KB