Date: Tue, 12 Dec 2006 23:19:31 +0900 From: Norikatsu Shigemura <nork@FreeBSD.org> To: Kris Kennaway <kris@obsecurity.org> Cc: freebsd-fs@FreeBSD.org, Norikatsu Shigemura <nork@FreeBSD.org>, basteon <basteon@gmail.com> Subject: Re: FreeBSD-7.0 on ZFS Message-ID: <20061212231931.248dfdd8.nork@FreeBSD.org> In-Reply-To: <20061212053918.GA91319@xor.obsecurity.org> References: <328fe7150612112129x30cf7d9gbfd6692ba8c11038@mail.gmail.com> <20061212053918.GA91319@xor.obsecurity.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 12 Dec 2006 00:39:18 -0500 Kris Kennaway <kris@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); +}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061212231931.248dfdd8.nork>