]> git.baikalelectronics.ru Git - kernel.git/commit
staging: erofs: introduce error injection infrastructure
authorChao Yu <yuchao0@huawei.com>
Thu, 26 Jul 2018 12:21:54 +0000 (20:21 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jul 2018 15:24:08 +0000 (17:24 +0200)
commita086e1b08c55209ec9da569268375b67ca7e40d4
treefea06cc42e41badecf143a3bc620d29747a12bf1
parentef13263ead3b6a87f2a480179ff7be1a0b03d3c6
staging: erofs: introduce error injection infrastructure

This patch introduces error injection infrastructure, with it, we can
inject error in any kernel exported common functions which erofs used,
so that it can force erofs running into error paths, it turns out that
tests can cover real rare paths more easily to find bugs.

Reviewed-by: Gao Xiang <gaoxiang25@huawei.com>
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/erofs/Kconfig
drivers/staging/erofs/inode.c
drivers/staging/erofs/internal.h
drivers/staging/erofs/super.c