summaryrefslogtreecommitdiff
path: root/fs/f2fs/super.c
diff options
context:
space:
mode:
authorChao Yu <yuchao0@huawei.com>2016-09-18 15:30:07 (GMT)
committerJaegeuk Kim <jaegeuk@kernel.org>2016-09-22 18:43:06 (GMT)
commit8b038c70dfe4fd7b62573917a9e976f826ac6ad3 (patch)
tree175fe3a2f6b72002259feb601f0de64b77de20f1 /fs/f2fs/super.c
parent866969668aebe9626c083b9ababc8f88454ce049 (diff)
downloadlinux-8b038c70dfe4fd7b62573917a9e976f826ac6ad3.tar.xz
f2fs: support IO error injection
This patch adds to support IO error injection for testing IO error tolerance of f2fs. Signed-off-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/super.c')
-rw-r--r--fs/f2fs/super.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index 555217f..29e3cf4 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -50,6 +50,7 @@ char *fault_name[FAULT_MAX] = {
[FAULT_BLOCK] = "no more block",
[FAULT_DIR_DEPTH] = "too big dir depth",
[FAULT_EVICT_INODE] = "evict_inode fail",
+ [FAULT_IO] = "IO error",
};
static void f2fs_build_fault_attr(unsigned int rate)