Whamcloud - gitweb
LU-7495 utils: add --links option for lfs find 86/50886/4
authorThomas Bertschinger <bertschinger@lanl.gov>
Sun, 7 May 2023 17:34:42 +0000 (13:34 -0400)
committerOleg Drokin <green@whamcloud.com>
Fri, 19 May 2023 07:10:40 +0000 (07:10 +0000)
commitf759d6386d5d0edb95d683d97ca8d84c80080c1c
tree2648985caee47d6fbff9a7f73996b9b69c7f84b0
parent674aaa08011a8c04856069e55e91b43354d670ae
LU-7495 utils: add --links option for lfs find

This adds a "--links" option for lfs find to filter files and
directories by the number of hard links. It also adds a printf format
'%n' to print the number of links for a file.

This commit also fixes '-l' as a short option for '--lazy' which was
added in 11aa7f8704c490b011f60f234c3ac9929ce76948 but the short option
did not work.

Signed-off-by: Thomas Bertschinger <bertschinger@lanl.gov>
Change-Id: I5d15bc290df8e8a08402f8d5cfa0a7139791b0a4
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/50886
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Anjus George <georgea@ornl.gov>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/doc/lfs-find.1
lustre/include/lustre/lustreapi.h
lustre/tests/sanity.sh
lustre/utils/lfs.c
lustre/utils/liblustreapi.c