diff options
author | Chao Yu <yuchao0@huawei.com> | 2018-09-12 09:22:29 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2018-09-12 13:07:32 -0700 |
commit | 6f5c2ed0a26fae6904a88622c126dfb9369548a3 (patch) | |
tree | 40c3e2ae7e087365d7648e840d820e1090837d56 /fs/f2fs/super.c | |
parent | 7c1a000d466235c875a989971cfda344e6bb1166 (diff) | |
download | linux-stable-6f5c2ed0a26fae6904a88622c126dfb9369548a3.tar.gz linux-stable-6f5c2ed0a26fae6904a88622c126dfb9369548a3.tar.bz2 linux-stable-6f5c2ed0a26fae6904a88622c126dfb9369548a3.zip |
f2fs: split IO error injection according to RW
This patch adds to support injecting error for write IO, this can simulate
IO error like fail_make_request or dm_flakey does.
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.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 8c536105d5ef..945468968d4e 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -50,9 +50,10 @@ char *f2fs_fault_name[FAULT_MAX] = { [FAULT_DIR_DEPTH] = "too big dir depth", [FAULT_EVICT_INODE] = "evict_inode fail", [FAULT_TRUNCATE] = "truncate fail", - [FAULT_IO] = "IO error", + [FAULT_READ_IO] = "read IO error", [FAULT_CHECKPOINT] = "checkpoint error", [FAULT_DISCARD] = "discard error", + [FAULT_WRITE_IO] = "write IO error", }; void f2fs_build_fault_attr(struct f2fs_sb_info *sbi, unsigned int rate, |