Skip to content
  • Kevin Wolf's avatar
    8b9b0cc2
    blkdebug: Add events and rules · 8b9b0cc2
    Kevin Wolf authored
    
    
    Block drivers can trigger a blkdebug event whenever they reach a place where it
    could be useful to inject an error for testing/debugging purposes.
    
    Rules are read from a blkdebug config file and describe which action is taken
    when an event is triggered. For now this is only injecting an error (with a few
    options) or changing the state (which is an integer). Rules can be declared to
    be active only in a specific state; this way later rules can distiguish on
    which path we came to trigger their event.
    
    Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
    8b9b0cc2
    blkdebug: Add events and rules
    Kevin Wolf authored
    
    
    Block drivers can trigger a blkdebug event whenever they reach a place where it
    could be useful to inject an error for testing/debugging purposes.
    
    Rules are read from a blkdebug config file and describe which action is taken
    when an event is triggered. For now this is only injecting an error (with a few
    options) or changing the state (which is an integer). Rules can be declared to
    be active only in a specific state; this way later rules can distiguish on
    which path we came to trigger their event.
    
    Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
Loading