Whamcloud - gitweb
LU-8465 e2fsck: print thread log properly 22/35922/16
authorLi Xi <lixi@ddn.com>
Mon, 26 Aug 2019 14:34:06 +0000 (22:34 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Sat, 26 Sep 2020 00:35:33 +0000 (00:35 +0000)
commit6a78e90e76bd259b8df436d0bbfd19b411fde94b
treef73b354e8f9599c158a32c2fd655a74e40592ca7
parent0c20759c1cdf00c6436115842a36ad1e094583f3
LU-8465 e2fsck: print thread log properly

When multi-thread fsck is enabled, logs printed from multiple
threads could overlap with each other. The overlap sometimes
makes the logs unreadable because log_out() is used multiple times
for a single line.

This patch adds leading [Thread XXX] to each logs if multi-thread
is enabed by -m option.

This patch also adds message to show the group ranges and inode
numbers for each thread, which is useful for debuging multi-thread
check.

Change-Id: I5bde34263d737ad5ffe177eba5520111baa71e54
Signed-off-by: Li Xi <lixi@ddn.com>
Signed-off-by: Wang Shilong <wshilong@ddn.com>
Reviewed-on: https://review.whamcloud.com/35922
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
e2fsck/e2fsck.h
e2fsck/pass1.c
e2fsck/problem.c
e2fsck/util.c
tests/f_multithread/expect.1
tests/f_multithread_logfile/expect.1
tests/f_multithread_no/expect.1