Whamcloud - gitweb
LU-17814 utils: add parallel find arg 21/57221/14
authorPatrick Farrell <pfarrell@whamcloud.com>
Tue, 25 Mar 2025 16:10:14 +0000 (12:10 -0400)
committerOleg Drokin <green@whamcloud.com>
Fri, 25 Apr 2025 00:53:27 +0000 (00:53 +0000)
commit93c03de4bb52e9ceeb79f89dc277d2e251f27167
tree4944dddfbc1ad08e24d10a5bbb37e838d24aa201
parent51e5c0e80baf98043d181a376af1b4c1fb368c32
LU-17814 utils: add parallel find arg

lfs find is currently serial, but it can be much faster if
we add a parallel implementation where it creates a work
unit for every directory and handles them in parallel.

This is the first patch of that implementation.

Add arg to control thread count.
No implementation yet.

Test-Parameters: trivial
Signed-off-by: Patrick Farrell <pfarrell@whamcloud.com>
Change-Id: I73b542decd75e1f7580f584d2ea6a219af51be4c
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/57221
Reviewed-by: Marc Vef <mvef@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/include/lustre/lustreapi.h
lustre/utils/lfs.c