]> 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)
commite32200fd612071a2a9c8a50c023fc40c62e8d103
treefea06cc42e41badecf143a3bc620d29747a12bf1
parentdc7564d74de8a31def77584288d99c3210f6f9a9
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