From 779cd145a8b7a007c5d956ac32b644de929d2ff4 Mon Sep 17 00:00:00 2001 From: jacob Date: Tue, 24 Feb 2004 00:00:52 +0000 Subject: [PATCH] r=phil if mount.lustre is not installed, don't oops but print a message suggesting it be checked. --- lustre/llite/llite_lib.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lustre/llite/llite_lib.c b/lustre/llite/llite_lib.c index bc417230..36b0250 100644 --- a/lustre/llite/llite_lib.c +++ b/lustre/llite/llite_lib.c @@ -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); -- 1.8.3.1