Whamcloud - gitweb
LU-8465 e2fsck: reset lost_and_found after threads finish 99/37999/10
authorWang Shilong <wshilong@ddn.com>
Fri, 20 Mar 2020 01:50:56 +0000 (09:50 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Sat, 26 Sep 2020 06:36:14 +0000 (06:36 +0000)
This should not be kept, the reaons is similar to what
e2fsck_pass1 has done before.

Change-Id: Ieab9f799e159047f2d94cf5ba0568c9f146785ae
Signed-off-by: Wang Shilong <wshilong@ddn.com>
Reviewed-on: https://review.whamcloud.com/37999
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
e2fsck/pass1.c

index 43c80e4..b6a9da7 100644 (file)
@@ -3266,6 +3266,11 @@ static int e2fsck_pass1_thread_join_one(e2fsck_t global_ctx, e2fsck_t thread_ctx
        /* threads might enable E2F_OPT_YES */
        global_ctx->options |= options;
        global_ctx->flags |= flags;
+       /*
+        * The l+f inode may have been cleared, so zap it now and
+        * later passes will recalculate it if necessary
+        */
+       global_ctx->lost_and_found = 0;
 
        retval = e2fsck_pass1_merge_fs(global_fs, thread_fs);
        if (retval) {