From: Ben Evans Date: Wed, 1 Nov 2017 17:02:27 +0000 (-0400) Subject: LU-10182 utils: change MDT name too long error X-Git-Tag: 2.10.56~39 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=e59d573a3730135f63f9a4f3dc56609e380f71f5;p=fs%2Flustre-release.git LU-10182 utils: change MDT name too long error Change the error message to something more generic. fsname-MDT00 failed with "Name too long", which was wrong Test-parameters: trivial Signed-off-by: Ben Evans Change-Id: If7c7de080c75dfdc853ff6d06e98a8ed074279cb Reviewed-on: https://review.whamcloud.com/29884 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Patrick Farrell Reviewed-by: Steve Guminski Reviewed-by: James Simmons Reviewed-by: Oleg Drokin --- diff --git a/lustre/utils/liblustreapi.c b/lustre/utils/liblustreapi.c index 4383fd7..d3c5e7f 100644 --- a/lustre/utils/liblustreapi.c +++ b/lustre/utils/liblustreapi.c @@ -4491,7 +4491,7 @@ static int get_mdtname(char *name, char *format, char *buf) } else { /* Not enough room to add suffix */ llapi_err_noerrno(LLAPI_MSG_ERROR, - "MDT name too long |%s|", name); + "Invalid MDT name |%s|", name); return -EINVAL; } }