diff options
author | Eric Blake <eblake@redhat.com> | 2017-04-29 14:14:15 -0500 |
---|---|---|
committer | Max Reitz <mreitz@redhat.com> | 2017-05-11 14:28:06 +0200 |
commit | d157ed5f7235f3d2d5596a514ad7507b18e24b88 (patch) | |
tree | af84490cac6f2a9e34a597b0e0a067e9b873c0b5 /scripts | |
parent | e0ef439588ce1ede747f82b77d893190c1cc9f4d (diff) |
blkdebug: Refactor error injection
Rather than repeat the logic at each caller of checking if a Rule
exists that warrants an error injection, fold that logic into
inject_error(); and rename it to rule_check() for legibility.
This will help the next patch, which adds two more callers that
need to check rules for the potential of injecting errors.
Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Message-id: 20170429191419.30051-6-eblake@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions