Whamcloud - gitweb
LU-14489 utils: fix 'lfs find --mdt-count'
authorAndreas Dilger <adilger@whamcloud.com>
Fri, 28 May 2021 21:15:10 +0000 (15:15 -0600)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 17 Sep 2021 22:27:37 +0000 (22:27 +0000)
commit4063d21e395e16f486d2e3414d473c4376e9e7a4
tree5dbcaac1612248bac1c5e100dec6ff756c58f716
parentd95992970f698f0472a59302ed69ef8a6762f21e
LU-14489 utils: fix 'lfs find --mdt-count'

Running "lfs find --mdt-count" causes the find to exit if there
is no directory striping, rather than continuing to the next item.

If cb_get_dirstripe() receives ENODATA then it should consider
that directory as not having any striping and move on, rather
than returning this error to the caller.

Don't crash in cb_getdirstripe() if it is called with a NULL
directory pointer or no directory is opened.

Lustre-change: https://review.whamcloud.com/43866
Lustre-commit: baba1fd07a977a62295482919e9218f877c0535a

Test-Parameters: trivial
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: If8dd135a86a6a8911bf804542132b2e7a3ce7057
Reviewed-by: Lai Siyao <lai.siyao@whamcloud.com>
Reviewed-by: Olaf Faaland-LLNL <faaland1@llnl.gov>
Reviewed-on: https://review.whamcloud.com/44945
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/doc/lfs-find.1
lustre/tests/sanity.sh
lustre/utils/liblustreapi.c