On 08.03.2017 03:54, Eric Blake wrote: > 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 <ebl...@redhat.com> > > --- > v6: new patch > --- > block/blkdebug.c | 74 > +++++++++++++++++++++++++------------------------------- > 1 file changed, 33 insertions(+), 41 deletions(-) > > diff --git a/block/blkdebug.c b/block/blkdebug.c > index 7c804b2..f721bcb 100644 > --- a/block/blkdebug.c > +++ b/block/blkdebug.c
Reviewed-by: Max Reitz <mre...@redhat.com>
signature.asc
Description: OpenPGP digital signature