From owner-freebsd-fs@FreeBSD.ORG Tue Dec 12 14:34:38 2006 Return-Path: X-Original-To: freebsd-fs@FreeBSD.org Delivered-To: freebsd-fs@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A516816A511; Tue, 12 Dec 2006 14:34:38 +0000 (UTC) (envelope-from nork@FreeBSD.org) Received: from sakura.ninth-nine.com (sakura.ninth-nine.com [219.127.74.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id E41F54443C; Tue, 12 Dec 2006 14:18:28 +0000 (GMT) (envelope-from nork@FreeBSD.org) Received: from nadesico.ninth-nine.com (nadesico.ninth-nine.com [219.127.74.122]) by sakura.ninth-nine.com (8.13.8/8.13.8/NinthNine) with SMTP id kBCEJVWC057569; Tue, 12 Dec 2006 23:19:32 +0900 (JST) (envelope-from nork@FreeBSD.org) Date: Tue, 12 Dec 2006 23:19:31 +0900 From: Norikatsu Shigemura To: Kris Kennaway 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> X-Mailer: Sylpheed version 2.3.0beta5 (GTK+ 2.10.6; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (sakura.ninth-nine.com [219.127.74.121]); Tue, 12 Dec 2006 23:19:32 +0900 (JST) Cc: freebsd-fs@FreeBSD.org, Norikatsu Shigemura , basteon Subject: Re: FreeBSD-7.0 on ZFS X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Dec 2006 14:34:38 -0000 On Tue, 12 Dec 2006 00:39:18 -0500 Kris Kennaway 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 +#include +__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); +}