Whamcloud - gitweb
Make the "/sbin/mount.lustre: No such device" error message less cryptic.
authoradilger <adilger>
Thu, 29 Apr 2004 23:10:43 +0000 (23:10 +0000)
committeradilger <adilger>
Thu, 29 Apr 2004 23:10:43 +0000 (23:10 +0000)
lustre/utils/llmount.c

index 3ac52de..980f9fe 100644 (file)
@@ -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);
         }