Re: [Qemu-devel] [PATCH v6 06/10] blkdebug: Refactor error injection

2017-03-13 Thread Max Reitz
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 tha

[Qemu-devel] [PATCH v6 06/10] blkdebug: Refactor error injection

2017-03-07 Thread Eric Blake
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 inje