Whamcloud - gitweb
r=phil
authorjacob <jacob>
Tue, 24 Feb 2004 00:00:52 +0000 (00:00 +0000)
committerjacob <jacob>
Tue, 24 Feb 2004 00:00:52 +0000 (00:00 +0000)
if mount.lustre is not installed, don't oops but print a message
suggesting it be checked.

lustre/llite/llite_lib.c

index bc41723..36b0250 100644 (file)
@@ -510,6 +510,10 @@ int lustre_fill_super(struct super_block *sb, void *data, int silent)
         ENTRY;
 
         CDEBUG(D_VFSTRACE, "VFS Op: sb %p\n", sb);
+        if (lmd == NULL) {
+                CERROR("lustre_mount_data is NULL: check that /sbin/mount.lustre exists?\n");
+                RETURN(-EINVAL);
+        }
         sbi = lustre_init_sbi(sb);
         if (!sbi)
                 RETURN(-ENOMEM);