commit | cb78942b821380913e6810375c9ce72858e64c4f | [log] [tgz] |
---|---|---|
author | Jaegeuk Kim <jaegeuk@kernel.org> | Fri Apr 29 16:29:22 2016 -0700 |
committer | Jaegeuk Kim <jaegeuk@kernel.org> | Sat May 07 10:32:24 2016 -0700 |
tree | 1106e5e49216f247f4c373192c71a382b9065fe0 | |
parent | c41f3cc3ae34acdbcec328084b4b74f686c02f0d [diff] [blame] |
f2fs: inject ENOSPC failures This patch injects ENOSPC failures. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 986d0da..87654f4 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c
@@ -46,6 +46,10 @@ char *fault_name[FAULT_MAX] = { [FAULT_KMALLOC] = "kmalloc", [FAULT_PAGE_ALLOC] = "page alloc", + [FAULT_ALLOC_NID] = "alloc nid", + [FAULT_ORPHAN] = "orphan", + [FAULT_BLOCK] = "no more block", + [FAULT_DIR_DEPTH] = "too big dir depth", }; #endif