Skip to content
  • Stefan Hajnoczi's avatar
    tests: add nbd-fault-injector.py utility · 1e8ece0d
    Stefan Hajnoczi authored
    
    
    The nbd-fault-injector.py script is a special kind of NBD server.  It
    throws away all writes and produces zeroes for reads.  Given a list of
    fault injection rules, it can simulate NBD protocol errors and is useful
    for testing NBD client error handling code paths.
    
    See the patch for documentation.  This scripts is modelled after Kevin
    Wolf <kwolf@redhat.com>'s blkdebug block driver.
    
    Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
    1e8ece0d