From: adilger Date: Thu, 29 Apr 2004 23:10:43 +0000 (+0000) Subject: Make the "/sbin/mount.lustre: No such device" error message less cryptic. X-Git-Tag: v1_8_0_110~486^5~224 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=1355ec0a63a07e55786839858ded220f6fea1a00;p=fs%2Flustre-release.git Make the "/sbin/mount.lustre: No such device" error message less cryptic. --- 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); }