summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorDavid Leonard <d@cvs.openbsd.org>1999-11-17 04:31:23 +0000
committerDavid Leonard <d@cvs.openbsd.org>1999-11-17 04:31:23 +0000
commit977e19fa820b8016bcb78b910db08d93012fc305 (patch)
treece07637758c59ce1aa45f0706ba135d1775cf9e4 /sys/kern
parentd2524a9abd45ca8fc9fe9efd8059d372570d93d7 (diff)
allow to compile without -DFFS. okay deraadt@
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/subr_disk.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/kern/subr_disk.c b/sys/kern/subr_disk.c
index bcae3380548..5d8f8fda806 100644
--- a/sys/kern/subr_disk.c
+++ b/sys/kern/subr_disk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_disk.c,v 1.16 1997/11/23 03:19:18 mickey Exp $ */
+/* $OpenBSD: subr_disk.c,v 1.17 1999/11/17 04:31:22 d Exp $ */
/* $NetBSD: subr_disk.c,v 1.17 1996/03/16 23:17:08 christos Exp $ */
/*
@@ -471,6 +471,7 @@ dk_mountroot()
break;
#endif
default:
+#ifdef FFS
{
extern int ffs_mountroot __P((void));
@@ -478,6 +479,10 @@ dk_mountroot()
dl.d_partitions[part].p_fstype);
mountrootfn = ffs_mountroot;
}
+#else
+ panic("disk 0x%x/0x%x filesystem type %d not known",
+ rootdev, rrootdev, dl.d_partitions[part].p_fstype);
+#endif
}
return (*mountrootfn)();
}