Re: ZFS patches.

From: Shaun Courtney <courtney.shaun_at_gmail.com>
Date: Wed, 6 Aug 2008 17:42:11 +0200
Hi,
I've upgraded from 7 to 8-CURRENT

uname -a
FreeBSD zfs3.cybersmart.co.za 8.0-CURRENT FreeBSD 8.0-CURRENT #10: Wed Aug
 6 00:56:48 SAST 2008
shaun_at_zfs3.xxxxxxxx.xx.xx:/usr/obj/usr/src/sys/GENERIC
 amd64

Hardware - Intel core 2 duo with 2G ram.

kern.maxvnodes=300000

geom_mirror_load=YES
vfs.zfs.prefetch_disable="1"
vfs.zfs.arc_max="104857600"
vm.kmem_size_max="1073741824"
vm.kmem_size="1073741824"


patched, but when compiling the kernel I get this error:

cc -c -O2 -frename-registers -pipe -fno-strict-aliasing  -std=c99 -g -Wall
-Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes
-Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign
-fformat-extensions -nostdinc  -I. -I/usr/src/sys
-I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include
opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100
--param large-function-growth=1000  -fno-omit-frame-pointer -mcmodel=kernel
-mno-red-zone  -mfpmath=387 -mno-sse -mno-sse2 -mno-sse3 -mno-mmx -mno-3dnow
 -msoft-float -fno-asynchronous-unwind-tables -ffreestanding
-fstack-protector -Werror  /usr/src/sys/kern/kern_osd.c
/usr/src/sys/kern/kern_osd.c:345: error: redefinition of 'M_OSD'
/usr/src/sys/kern/kern_osd.c:44: error: previous definition of 'M_OSD' was
here
/usr/src/sys/kern/kern_osd.c:345: error: redefinition of
'M_OSD_init_sys_init'
/usr/src/sys/kern/kern_osd.c:44: error: previous definition of
'M_OSD_init_sys_init' was here
/usr/src/sys/kern/kern_osd.c:345: error: redefinition of
'__set_sysinit_set_sym_M_OSD_init_sys_init'
/usr/src/sys/kern/kern_osd.c:44: error: previous definition of
'__set_sysinit_set_sym_M_OSD_init_sys_init' was here
/usr/src/sys/kern/kern_osd.c:345: error: redefinition of
'M_OSD_uninit_sys_uninit'
/usr/src/sys/kern/kern_osd.c:44: error: previous definition of
'M_OSD_uninit_sys_uninit' was here
/usr/src/sys/kern/kern_osd.c:345: error: redefinition of
'__set_sysuninit_set_sym_M_OSD_uninit_sys_uninit'
/usr/src/sys/kern/kern_osd.c:44: error: previous definition of
'__set_sysuninit_set_sym_M_OSD_uninit_sys_uninit' was here
/usr/src/sys/kern/kern_osd.c:347: error: redefinition of 'osd_debug'
/usr/src/sys/kern/kern_osd.c:46: error: previous definition of 'osd_debug'
was here
/usr/src/sys/kern/kern_osd.c:349: error: redefinition of
'sysctl___debug_osd'
/usr/src/sys/kern/kern_osd.c:48: error: previous definition of
'sysctl___debug_osd' was here
/usr/src/sys/kern/kern_osd.c:349: error: redefinition of
'__set_sysctl_set_sym_sysctl___debug_osd'
/usr/src/sys/kern/kern_osd.c:48: error: previous definition of
'__set_sysctl_set_sym_sysctl___debug_osd' was here
/usr/src/sys/kern/kern_osd.c:362: error: conflicting types for 'osd_list'
/usr/src/sys/kern/kern_osd.c:61: error: previous declaration of 'osd_list'
was here
cc1: warnings being treated as errors
/usr/src/sys/kern/kern_osd.c:363: warning: redundant redeclaration of
'osd_destructors'
/usr/src/sys/kern/kern_osd.c:62: warning: previous declaration of
'osd_destructors' was here
/usr/src/sys/kern/kern_osd.c:364: warning: redundant redeclaration of
'osd_nslots'
/usr/src/sys/kern/kern_osd.c:63: warning: previous declaration of
'osd_nslots' was here
/usr/src/sys/kern/kern_osd.c:365: warning: redundant redeclaration of
'osd_lock'
/usr/src/sys/kern/kern_osd.c:64: warning: previous declaration of 'osd_lock'
was here
/usr/src/sys/kern/kern_osd.c:369: error: redefinition of
'osd_default_destructor'
/usr/src/sys/kern/kern_osd.c:68: error: previous definition of
'osd_default_destructor' was here
/usr/src/sys/kern/kern_osd.c:375: error: redefinition of 'osd_register'
/usr/src/sys/kern/kern_osd.c:74: error: previous definition of
'osd_register' was here
/usr/src/sys/kern/kern_osd.c:422: error: redefinition of 'osd_deregister'
/usr/src/sys/kern/kern_osd.c:121: error: previous definition of
'osd_deregister' was here
/usr/src/sys/kern/kern_osd.c:461: error: redefinition of 'osd_set'
/usr/src/sys/kern/kern_osd.c:160: error: previous definition of 'osd_set'
was here
/usr/src/sys/kern/kern_osd.c:503: error: redefinition of 'osd_get'
/usr/src/sys/kern/kern_osd.c:202: error: previous definition of 'osd_get'
was here
/usr/src/sys/kern/kern_osd.c:521: error: redefinition of 'osd_del'
/usr/src/sys/kern/kern_osd.c:220: error: previous definition of 'osd_del'
was here
/usr/src/sys/kern/kern_osd.c:572: error: redefinition of 'osd_exit'
/usr/src/sys/kern/kern_osd.c:271: error: previous definition of 'osd_exit'
was here
/usr/src/sys/kern/kern_osd.c:592: error: redefinition of 'osd_init'
/usr/src/sys/kern/kern_osd.c:291: error: previous definition of 'osd_init'
was here
/usr/src/sys/kern/kern_osd.c:602: error: redefinition of 'osd_sys_init'
/usr/src/sys/kern/kern_osd.c:301: error: previous definition of
'osd_sys_init' was here
/usr/src/sys/kern/kern_osd.c:602: error: redefinition of
'__set_sysinit_set_sym_osd_sys_init'
/usr/src/sys/kern/kern_osd.c:301: error: previous definition of
'__set_sysinit_set_sym_osd_sys_init' was here
/usr/src/sys/kern/kern_osd.c:646: error: redefinition of 'M_OSD'
/usr/src/sys/kern/kern_osd.c:345: error: previous definition of 'M_OSD' was
here
/usr/src/sys/kern/kern_osd.c:646: error: redefinition of
'M_OSD_init_sys_init'
/usr/src/sys/kern/kern_osd.c:345: error: previous definition of
'M_OSD_init_sys_init' was here
/usr/src/sys/kern/kern_osd.c:646: error: redefinition of
'__set_sysinit_set_sym_M_OSD_init_sys_init'
/usr/src/sys/kern/kern_osd.c:345: error: previous definition of
'__set_sysinit_set_sym_M_OSD_init_sys_init' was here
/usr/src/sys/kern/kern_osd.c:646: error: redefinition of
'M_OSD_uninit_sys_uninit'
/usr/src/sys/kern/kern_osd.c:345: error: previous definition of
'M_OSD_uninit_sys_uninit' was here
/usr/src/sys/kern/kern_osd.c:646: error: redefinition of
'__set_sysuninit_set_sym_M_OSD_uninit_sys_uninit'
/usr/src/sys/kern/kern_osd.c:345: error: previous definition of
'__set_sysuninit_set_sym_M_OSD_uninit_sys_uninit' was here
/usr/src/sys/kern/kern_osd.c:648: error: redefinition of 'osd_debug'
/usr/src/sys/kern/kern_osd.c:347: error: previous definition of 'osd_debug'
was here
/usr/src/sys/kern/kern_osd.c:650: error: redefinition of
'sysctl___debug_osd'
/usr/src/sys/kern/kern_osd.c:349: error: previous definition of
'sysctl___debug_osd' was here
/usr/src/sys/kern/kern_osd.c:650: error: redefinition of
'__set_sysctl_set_sym_sysctl___debug_osd'
/usr/src/sys/kern/kern_osd.c:349: error: previous definition of
'__set_sysctl_set_sym_sysctl___debug_osd' was here
/usr/src/sys/kern/kern_osd.c:663: error: conflicting types for 'osd_list'
/usr/src/sys/kern/kern_osd.c:362: error: previous declaration of 'osd_list'
was here
/usr/src/sys/kern/kern_osd.c:664: warning: redundant redeclaration of
'osd_destructors'
/usr/src/sys/kern/kern_osd.c:363: warning: previous declaration of
'osd_destructors' was here
/usr/src/sys/kern/kern_osd.c:665: warning: redundant redeclaration of
'osd_nslots'
/usr/src/sys/kern/kern_osd.c:364: warning: previous declaration of
'osd_nslots' was here
/usr/src/sys/kern/kern_osd.c:666: warning: redundant redeclaration of
'osd_lock'
/usr/src/sys/kern/kern_osd.c:365: warning: previous declaration of
'osd_lock' was here
/usr/src/sys/kern/kern_osd.c:670: error: redefinition of
'osd_default_destructor'
/usr/src/sys/kern/kern_osd.c:369: error: previous definition of
'osd_default_destructor' was here
/usr/src/sys/kern/kern_osd.c:676: error: redefinition of 'osd_register'
/usr/src/sys/kern/kern_osd.c:74: error: previous definition of
'osd_register' was here
/usr/src/sys/kern/kern_osd.c:723: error: redefinition of 'osd_deregister'
/usr/src/sys/kern/kern_osd.c:121: error: previous definition of
'osd_deregister' was here
/usr/src/sys/kern/kern_osd.c:762: error: redefinition of 'osd_set'
/usr/src/sys/kern/kern_osd.c:160: error: previous definition of 'osd_set'
was here
/usr/src/sys/kern/kern_osd.c:804: error: redefinition of 'osd_get'
/usr/src/sys/kern/kern_osd.c:202: error: previous definition of 'osd_get'
was here
/usr/src/sys/kern/kern_osd.c:822: error: redefinition of 'osd_del'
/usr/src/sys/kern/kern_osd.c:220: error: previous definition of 'osd_del'
was here
/usr/src/sys/kern/kern_osd.c:873: error: redefinition of 'osd_exit'
/usr/src/sys/kern/kern_osd.c:271: error: previous definition of 'osd_exit'
was here
/usr/src/sys/kern/kern_osd.c:893: error: redefinition of 'osd_init'
/usr/src/sys/kern/kern_osd.c:592: error: previous definition of 'osd_init'
was here
/usr/src/sys/kern/kern_osd.c:903: error: redefinition of 'osd_sys_init'
/usr/src/sys/kern/kern_osd.c:602: error: previous definition of
'osd_sys_init' was here
/usr/src/sys/kern/kern_osd.c:903: error: redefinition of
'__set_sysinit_set_sym_osd_sys_init'
/usr/src/sys/kern/kern_osd.c:602: error: previous definition of
'__set_sysinit_set_sym_osd_sys_init' was here
/usr/src/sys/kern/kern_osd.c:947: error: redefinition of 'M_OSD'
/usr/src/sys/kern/kern_osd.c:646: error: previous definition of 'M_OSD' was
here
/usr/src/sys/kern/kern_osd.c:947: error: redefinition of
'M_OSD_init_sys_init'
/usr/src/sys/kern/kern_osd.c:646: error: previous definition of
'M_OSD_init_sys_init' was here
/usr/src/sys/kern/kern_osd.c:947: error: redefinition of
'__set_sysinit_set_sym_M_OSD_init_sys_init'
/usr/src/sys/kern/kern_osd.c:646: error: previous definition of
'__set_sysinit_set_sym_M_OSD_init_sys_init' was here
/usr/src/sys/kern/kern_osd.c:947: error: redefinition of
'M_OSD_uninit_sys_uninit'
/usr/src/sys/kern/kern_osd.c:646: error: previous definition of
'M_OSD_uninit_sys_uninit' was here
/usr/src/sys/kern/kern_osd.c:947: error: redefinition of
'__set_sysuninit_set_sym_M_OSD_uninit_sys_uninit'
/usr/src/sys/kern/kern_osd.c:646: error: previous definition of
'__set_sysuninit_set_sym_M_OSD_uninit_sys_uninit' was here
/usr/src/sys/kern/kern_osd.c:949: error: redefinition of 'osd_debug'
/usr/src/sys/kern/kern_osd.c:648: error: previous definition of 'osd_debug'
was here
/usr/src/sys/kern/kern_osd.c:951: error: redefinition of
'sysctl___debug_osd'
/usr/src/sys/kern/kern_osd.c:650: error: previous definition of
'sysctl___debug_osd' was here
/usr/src/sys/kern/kern_osd.c:951: error: redefinition of
'__set_sysctl_set_sym_sysctl___debug_osd'
/usr/src/sys/kern/kern_osd.c:650: error: previous definition of
'__set_sysctl_set_sym_sysctl___debug_osd' was here
/usr/src/sys/kern/kern_osd.c:964: error: conflicting types for 'osd_list'
/usr/src/sys/kern/kern_osd.c:663: error: previous declaration of 'osd_list'
was here
/usr/src/sys/kern/kern_osd.c:965: warning: redundant redeclaration of
'osd_destructors'
/usr/src/sys/kern/kern_osd.c:664: warning: previous declaration of
'osd_destructors' was here
/usr/src/sys/kern/kern_osd.c:966: warning: redundant redeclaration of
'osd_nslots'
/usr/src/sys/kern/kern_osd.c:665: warning: previous declaration of
'osd_nslots' was here
/usr/src/sys/kern/kern_osd.c:967: warning: redundant redeclaration of
'osd_lock'
/usr/src/sys/kern/kern_osd.c:666: warning: previous declaration of
'osd_lock' was here
/usr/src/sys/kern/kern_osd.c:971: error: redefinition of
'osd_default_destructor'
/usr/src/sys/kern/kern_osd.c:670: error: previous definition of
'osd_default_destructor' was here
/usr/src/sys/kern/kern_osd.c:977: error: redefinition of 'osd_register'
/usr/src/sys/kern/kern_osd.c:74: error: previous definition of
'osd_register' was here
/usr/src/sys/kern/kern_osd.c:1024: error: redefinition of 'osd_deregister'
/usr/src/sys/kern/kern_osd.c:121: error: previous definition of
'osd_deregister' was here
/usr/src/sys/kern/kern_osd.c:1063: error: redefinition of 'osd_set'
/usr/src/sys/kern/kern_osd.c:160: error: previous definition of 'osd_set'
was here
/usr/src/sys/kern/kern_osd.c:1105: error: redefinition of 'osd_get'
/usr/src/sys/kern/kern_osd.c:202: error: previous definition of 'osd_get'
was here
/usr/src/sys/kern/kern_osd.c:1123: error: redefinition of 'osd_del'
/usr/src/sys/kern/kern_osd.c:220: error: previous definition of 'osd_del'
was here
/usr/src/sys/kern/kern_osd.c:1174: error: redefinition of 'osd_exit'
/usr/src/sys/kern/kern_osd.c:271: error: previous definition of 'osd_exit'
was here
/usr/src/sys/kern/kern_osd.c:1194: error: redefinition of 'osd_init'
/usr/src/sys/kern/kern_osd.c:893: error: previous definition of 'osd_init'
was here
/usr/src/sys/kern/kern_osd.c:1204: error: redefinition of 'osd_sys_init'
/usr/src/sys/kern/kern_osd.c:903: error: previous definition of
'osd_sys_init' was here
/usr/src/sys/kern/kern_osd.c:1204: error: redefinition of
'__set_sysinit_set_sym_osd_sys_init'
/usr/src/sys/kern/kern_osd.c:903: error: previous definition of
'__set_sysinit_set_sym_osd_sys_init' was here
*** Error code 1

Stop in /usr/obj/usr/src/sys/GENERIC.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.


I've trolled google and the lists... but can't find anything on this. Can
you help?

Regards,


Shaun


On Sun, Jul 27, 2008 at 2:54 PM, Pawel Jakub Dawidek <pjd_at_freebsd.org>wrote:

> Hi.
>
>        http://people.freebsd.org/~pjd/patches/zfs_20080727.patch.bz2
>
> The patch above contains the most recent ZFS version that could be found
> in OpenSolaris as of today. Apart for large amount of new functionality,
> I belive there are many stability (and also performance) improvements
> compared to the version from the base system.
>
> Check out OpenSolaris website to find out the differences between base
> system version and patch version.
>
> Please test, test, test. If I get enough positive feedback, I may be
> able to squeeze it into 7.1-RELEASE, but this might be hard.
>
> If you have any questions, please use mailing lists
> (freebsd-fs_at_FreeBSD.org would be the best).
>
> Thank you in advance!
>
> --
> Pawel Jakub Dawidek                       http://www.wheel.pl
> pjd_at_FreeBSD.org                           http://www.FreeBSD.org
> FreeBSD committer                         Am I Evil? Yes, I Am!
>
Received on Wed Aug 06 2008 - 14:07:33 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:33 UTC