Skip to content
Snippets Groups Projects
Commit 0d5f685d authored by Thomas Bertschinger's avatar Thomas Bertschinger Committed by Oleg Drokin
Browse files

LU-17245 utils: fix lfs error messages with multiple paths


When using some lfs utilities (find, getstripe) with multiple paths,
if a subset of the paths has an error, for example due to a typo, the
error message produced can be misleading. For "getstripe" it refers to
the last file on the command line regardless of which file had the
error, and for "find" it prints out the right filename but uses
the error code from the last file on the command line.

This cleans up these error messages for "lfs find" and
"lfs getstripe".

This also adjusts "lfs setdirstripe" to continue for subsequent files
if it encounters an error for earlier files on the command line.

Signed-off-by: default avatarThomas Bertschinger <bertschinger@lanl.gov>
Fixes: bc500536 ("LU-930 utils: fix 'lfs find' error message")
Fixes: 4affa48f ("LU-5170 utils: Continue on error when multiple files requested")
Fixes: a24f6153 ("LU-11213 dne: add new dir hash type "space"")
Change-Id: I9cdd007912ffb4f6ebc31e422851977e49186ae7
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/52942


Tested-by: default avatarjenkins <devops@whamcloud.com>
Tested-by: default avatarMaloo <maloo@whamcloud.com>
Reviewed-by: default avatarAndreas Dilger <adilger@whamcloud.com>
Reviewed-by: default avatarTimothy Day <timday@amazon.com>
Reviewed-by: default avatarOleg Drokin <green@whamcloud.com>
parent d0a96831
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment