Whamcloud - gitweb
EX-8130 lipe: Link a new statistics module
authorVitaliy Kuznetsov <vkuznetsov@ddn.com>
Tue, 5 Mar 2024 14:56:23 +0000 (15:56 +0100)
committerAndreas Dilger <adilger@whamcloud.com>
Sat, 9 Mar 2024 07:43:44 +0000 (07:43 +0000)
commit9093217a72c15108d758c099f01e0d08f2595521
tree5a0922983595bedaf4f1579deac08fe8cd3dae5d
parent4f48489167420988b2ce836810ecb0ffe71df148
EX-8130 lipe: Link a new statistics module

This patch links the collection of statistics for
directories with the main collection of statistics
about file sizes. This way we collect all the statistics
at one time.

This patch also adds 2 new options for collecting statistics
via lipe_find3.

The -depth option serves as a limiter on the collection and
output of directory statistics to a file.
The -top-rating option allows adjustment of the size of the
table ranking the largest directories by size.

A mechanism has also been added that aallows a copy of the
path from the filter for correct data processing.

Test-Parameters: trivial testlist=sanity-lipe-scan3,sanity-lipe-find3
Signed-off-by: Vitaliy Kuznetsov <vkuznetsov@ddn.com>
Change-Id: Ia61f57536575fd17e40b6e34a0c4b9b5db9111c5
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/53990
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Alexandre Ioffe <aioffe@ddn.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
13 files changed:
lipe/src/lipe_find3/lf3_lexer.l
lipe/src/lipe_find3/lf3_parse.y
lipe/src/lipe_find3/lf3_parse_format.c
lipe/src/lipe_find3/lipe_scan3_mock.scm
lipe/src/lipe_scan3/Makefile.am
lipe/src/lipe_scan3/ls3_main.c
lipe/src/lipe_scan3/ls3_stats.c
lipe/src/lipe_scan3/scripts/lipe-scan-break.scm
lipe/src/lipe_scan3/scripts/lipe-scan-continue.scm
lipe/src/lipe_scan3/scripts/lipe-scan-format-ino.scm
lipe/src/lipe_scan3/scripts/lipe-scan-print-json.scm
lipe/src/lipe_scan3/scripts/lipe-scan-repl.scm
lipe/src/lipe_scan3/tests/lipe.scm