From 545c662f634798d4ce97c25d6749aeba00d87be8 Mon Sep 17 00:00:00 2001 From: Bobbie Lind Date: Fri, 28 Mar 2014 15:30:48 -0600 Subject: [PATCH] LU-4681 utils: Fix error message when using hostname When running llmount.sh for setting up and testing a filesystem if the system does not have an accurate line in /etc/hosts the build fails with a cryptic error message. This patch adds a little more information to the error message directing the admin to fix the /etc/hosts error. Signed-off-by: Bobbie Lind Change-Id: I426c1f05d2ab5dedc56bd587072882cf78c1bd43 Reviewed-on: http://review.whamcloud.com/9848 Tested-by: Jenkins Reviewed-by: Alex Zhuravlev Reviewed-by: Jian Yu Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Oleg Drokin --- lustre/utils/mkfs_lustre.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lustre/utils/mkfs_lustre.c b/lustre/utils/mkfs_lustre.c index 9fe6b5b..001a051 100644 --- a/lustre/utils/mkfs_lustre.c +++ b/lustre/utils/mkfs_lustre.c @@ -248,8 +248,8 @@ static char *convert_hostnames(char *s1) *s2 = sep; if (nid == LNET_NID_ANY) { - fprintf(stderr, "%s: Can't parse NID '%s'\n", - progname, s1); + fprintf(stderr, "%s: Cannot resolve hostname '%s'.\n", + progname, s1); free(converted); return NULL; } -- 1.8.3.1