From 1355ec0a63a07e55786839858ded220f6fea1a00 Mon Sep 17 00:00:00 2001 From: adilger Date: Thu, 29 Apr 2004 23:10:43 +0000 Subject: [PATCH] Make the "/sbin/mount.lustre: No such device" error message less cryptic. --- lustre/utils/llmount.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lustre/utils/llmount.c b/lustre/utils/llmount.c index 3ac52de..980f9fe 100644 --- a/lustre/utils/llmount.c +++ b/lustre/utils/llmount.c @@ -387,7 +387,11 @@ main(int argc, char * const argv[]) rc = mount(source, target, "lustre", 0, (void *)&lmd); if (rc) { + rc = errno; perror(argv[0]); + if (rc == ENODEV) + fprintf(stderr, "Are the lustre modules loaded?\n" + "Check /etc/modules.conf and /proc/filesystems\n"); } else { update_mtab_entry(source, target, "lustre", options, 0, 0, 0); } -- 1.8.3.1