diff --git a/fsck/main.c b/fsck/main.c index f83a4afb89e8bc75d3d26aa0e9b516afcd34e2b1..c4832c324063fbf5673fe35587a5b5baffbb76b5 100644 --- a/fsck/main.c +++ b/fsck/main.c @@ -239,6 +239,7 @@ void f2fs_parse_options(int argc, char *argv[]) {"no-kernel-check", no_argument, 0, 2}, {"kernel-check", no_argument, 0, 3}, {"debug-cache", no_argument, 0, 4}, + {"permissive", no_argument, 0, 6}, {0, 0, 0, 0} }; @@ -263,6 +264,10 @@ void f2fs_parse_options(int argc, char *argv[]) case 4: c.cache_config.dbg_en = true; break; + case 6: + c.permissive = true; + MSG(0, "Info: Enable permissive check\n"); + break; case 'a': c.auto_fix = 1; MSG(0, "Info: Fix the reported corruption.\n"); diff --git a/include/f2fs_fs.h b/include/f2fs_fs.h index 740142cdc6473a6f25ae34db2f9cd71c3fbcd7ec..15849b42820e7206c1ac25b9b61f7fec70772cd0 100644 --- a/include/f2fs_fs.h +++ b/include/f2fs_fs.h @@ -515,6 +515,7 @@ struct f2fs_configuration { bool quota_fixed; int alloc_failed; int auto_fix; + bool permissive; int layout; int show_file_map; u64 show_file_map_max_offset;