FreeBSD-7.0 on ZFS
Norikatsu Shigemura
nork at FreeBSD.org
Tue Dec 12 06:34:38 PST 2006
On Tue, 12 Dec 2006 00:39:18 -0500
Kris Kennaway <kris at obsecurity.org> wrote:
> Review the console log, it probably failed to load because of missing
> symbols. Make sure your kernel + module were both built with -O (not
> -O2). You may need to also enable some of the -D options depending on
> what is in your kernel.
I have a patch to fix this issue, and I'm testing ZFS:-).
--- sys/modules/zfs/Makefile.orig Tue Dec 12 23:16:12 2006
+++ sys/modules/zfs/Makefile Mon Dec 11 13:12:06 2006
@@ -42,6 +42,9 @@
SRCS+= subr_kernio.c
SRCS+= vdev_geom.c
+.PATH: ${.CURDIR}/../../libkern
+SRCS+= memset.c
+
CWARNFLAGS=-Wall
CWARNFLAGS+=-Wno-unknown-pragmas
CWARNFLAGS+=-Wno-missing-braces
--- /dev/null Tue Dec 12 23:11:00 2006
+++ sys/libkern/memset.c Mon Dec 11 13:12:44 2006
@@ -0,0 +1,45 @@
+/*-
+ * Copyright (c) 1988, 1993
+ * The Regents of the University of California. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * 4. Neither the name of the University nor the names of its contributors
+ * may be used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ */
+
+#include <sys/cdefs.h>
+#include <sys/types.h>
+__FBSDID("$FreeBSD$");
+
+void *
+memset(void *b, int c, size_t len)
+{
+ char *bb;
+
+ if (c == 0)
+ bzero(b, len);
+ else
+ for (bb = (char *)b; len--; )
+ *bb++ = c;
+ return (b);
+}
More information about the freebsd-fs
mailing list