From 852f7ed5621f7a20a73d60ab4bad29725990d10f Mon Sep 17 00:00:00 2001 From: nathan Date: Fri, 9 Jun 2006 19:29:43 +0000 Subject: [PATCH] Branch b1_5 b=8007 Better error message for wrong fsname --- lustre/llite/llite_lib.c | 4 +++- lustre/utils/mount_lustre.c | 7 ++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/lustre/llite/llite_lib.c b/lustre/llite/llite_lib.c index 6987360e8..c773745 100644 --- a/lustre/llite/llite_lib.c +++ b/lustre/llite/llite_lib.c @@ -896,7 +896,9 @@ int ll_fill_super(struct super_block *sb) lprof = class_get_profile(profilenm); if (lprof == NULL) { - CERROR("No profile found: %s\n", profilenm); + LCONSOLE_ERROR("The client profile '%s' could not be read " + "from the MGS. Does that filesystem exist?\n", + profilenm); GOTO(out_free, err = -EINVAL); } CDEBUG(D_CONFIG, "Found profile %s: mdc=%s osc=%s\n", profilenm, diff --git a/lustre/utils/mount_lustre.c b/lustre/utils/mount_lustre.c index 752174e..635ca14 100644 --- a/lustre/utils/mount_lustre.c +++ b/lustre/utils/mount_lustre.c @@ -405,8 +405,13 @@ int main(int argc, char *const argv[]) if (errno == EADDRINUSE) fprintf(stderr, "The target service's index is already " "in use. (%s)\n", source); - if (errno == EINVAL) + if (errno == EINVAL) { + char *ptr = strchr(source, '/'); + fprintf(stderr, "This may have multiple causes. Is " + "'%s' the correct filesystem name?\n", + ptr ? ptr + 1 : source); fprintf(stderr, "Check the syslog for more info\n"); + } rc = errno; } else if (!nomtab) { rc = update_mtab_entry(source, target, "lustre", orig_options, -- 1.8.3.1