summaryrefslogtreecommitdiff
path: root/fs/f2fs/f2fs.h
diff options
context:
space:
mode:
authorChao Yu <yuchao0@huawei.com>2016-09-26 14:45:55 +0300
committerJaegeuk Kim <jaegeuk@kernel.org>2016-10-01 03:34:35 +0300
commit0f34802858e74e708c6d42209811f6d264892c8f (patch)
treea125a1021d9a2e37df3ef624a4efff1d7606eed5 /fs/f2fs/f2fs.h
parent2443b8b363917468e2fb163b34c8f14fe1546251 (diff)
downloadlinux-0f34802858e74e708c6d42209811f6d264892c8f.tar.xz
f2fs: support checkpoint error injection
This patch adds to support checkpoint error injection in f2fs for testing fatal error tolerance, it will be useful that it can simulate abnormal power off by f2fs itself instead of calling godown ioctl by running apps. Signed-off-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/f2fs.h')
-rw-r--r--fs/f2fs/f2fs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h
index 896ad9f88357..9e8de18a168a 100644
--- a/fs/f2fs/f2fs.h
+++ b/fs/f2fs/f2fs.h
@@ -47,6 +47,7 @@ enum {
FAULT_DIR_DEPTH,
FAULT_EVICT_INODE,
FAULT_IO,
+ FAULT_CHECKPOINT,
FAULT_MAX,
};