third_party_f2fs-tools/fsck
Antoine Viallon 0f3b8d9c02 fsck.f2fs: Add progression feedback
commit 028af9f6067c1345023af9cd8ecbb76a770241ae
category: bugfix
issue: #I6VAS0
CVE: NA

Signed-off-by: DongSenhao <dongsenhao2@huawei.com>
---------------------------------------

On large SSDs filled with lots of data, fsck.f2fs can be very long to finish.
For instance, on my 1TB SSD filled at 99%, it takes literally 5 minutes to
complete.

Currently, the only way to have some feedback is to enable debug output,
but it is very verbose and doesn't tell the actual progress.

This patch implements a simple progress report in the longest
running part of the check (in fsck_chk_node_blk).
The number of checked node / total valid nodes is printed
every 1000 nodes checked, and the percentage of progress
is also calculated and printed.

Signed-off-by: Antoine Viallon <antoine@lesviallon.fr>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: dongsenhao <dongsenhao2@huawei.com>
2023-04-13 14:13:46 +08:00
..
BUILD.gn f2fs_tools部件化 2022-08-23 10:40:59 +08:00
common.h fsck.f2fs: support quota 2017-11-06 20:07:40 -08:00
compress.c f2fs-tools:sload.f2fs compression support 2023-04-13 14:13:44 +08:00
compress.h f2fs-tools:sload.f2fs compression support 2023-04-13 14:13:44 +08:00
defrag.c f2fs-tool: increase debug level from 0 to 1 in migrate_block 2023-04-13 14:13:44 +08:00
dict.c fsck.f2fs: support quota 2017-11-06 20:07:40 -08:00
dict.h fsck.f2fs: support quota 2017-11-06 20:07:40 -08:00
dir.c f2fs-tools: fix wrong value of reserve_new_block parameter in page_symlink 2023-04-13 14:13:46 +08:00
dqblk_v2.h fsck.f2fs: support quota 2017-11-06 20:07:40 -08:00
dump.c dump.f2fs: minor clean ups 2023-04-13 14:13:46 +08:00
f2fs.h f2fs-tools: add extent cache for each file 2023-04-13 14:13:46 +08:00
fsck.c fsck.f2fs: Add progression feedback 2023-04-13 14:13:46 +08:00
fsck.h fsck.f2fs: Add progression feedback 2023-04-13 14:13:46 +08:00
main.c mkfs.f2fs: wipe other FS magics given -f 2023-04-13 14:13:46 +08:00
Makefile.am tools: Introduce f2fslabel 2023-04-13 14:13:45 +08:00
mkquota.c fsck: prevent buffer overrun in quota code 2020-06-23 16:58:44 -07:00
mount.c f2fs-tools: fall back to the original version check when clock_gettime is not supported 2023-04-13 14:13:46 +08:00
node.c f2fs-tools: rebuild the quota inode if it is corrupted 2023-04-13 14:13:46 +08:00
node.h f2fs-tools: set cold flag for non-dir node 2020-06-18 12:38:18 -07:00
quotaio_tree.c fsck: prevent buffer overrun in quota code 2020-06-23 16:58:44 -07:00
quotaio_tree.h fsck.f2fs: don't allocate new blocks on unclean shutdown 2018-11-21 11:38:23 -08:00
quotaio_v2.c fsck: prevent buffer overrun in quota code 2020-06-23 16:58:44 -07:00
quotaio_v2.h fsck.f2fs: support quota 2017-11-06 20:07:40 -08:00
quotaio.c fsck: prevent buffer overrun in quota code 2020-06-23 16:58:44 -07:00
quotaio.h fsck: prevent buffer overrun in quota code 2020-06-23 16:58:44 -07:00
resize.c resize.f2fs: fix memory leak caused by migrate_nat() 2023-04-13 14:13:45 +08:00
segment.c f2fs-tools: add extent cache for each file 2023-04-13 14:13:46 +08:00
sload.c Add -P option to preserve file owner 2023-04-13 14:13:44 +08:00
xattr.c fsck.f2fs: do xnid sanity check only during fsck 2023-04-13 14:13:44 +08:00
xattr.h f2fs-tools: improve xattr value printing 2019-05-20 17:29:50 -07:00