]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: support fault_type mount option
authorChao Yu <yuchao0@huawei.com>
Wed, 8 Aug 2018 09:36:41 +0000 (17:36 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 13 Aug 2018 17:48:17 +0000 (10:48 -0700)
commita8a44f9f70251b98c13abccd4c68cce207fb1b1a
treee1b31c567401d6c0486aaadf37332a26d6bf36c1
parent26c5d1eef0b3fac1fa4c101bf8bb8a94630ce46a
f2fs: support fault_type mount option

Previously, once fault injection is on, by default, all kind of faults
will be injected to f2fs, if we want to trigger single or specified
combined type during the test, we need to configure sysfs entry, it will
be a little inconvenient to integrate sysfs configuring into testsuit,
such as xfstest.

So this patch introduces a new mount option 'fault_type' to assist old
option 'fault_injection', with these two mount options, we can specify
any fault rate/type at mount-time.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Documentation/filesystems/f2fs.txt
fs/f2fs/checkpoint.c
fs/f2fs/f2fs.h
fs/f2fs/super.c