From owner-freebsd-current@FreeBSD.ORG Sun Apr 8 18:14:16 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2814116A403; Sun, 8 Apr 2007 18:14:16 +0000 (UTC) (envelope-from max@love2party.net) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.174]) by mx1.freebsd.org (Postfix) with ESMTP id AA83513C4BA; Sun, 8 Apr 2007 18:14:15 +0000 (UTC) (envelope-from max@love2party.net) Received: from [88.66.29.9] (helo=amd64.laiers.local) by mrelayeu.kundenserver.de (node=mrelayeu4) with ESMTP (Nemesis), id 0ML21M-1HabtY0ntw-0000hb; Sun, 08 Apr 2007 20:13:44 +0200 From: Max Laier Organization: FreeBSD To: freebsd-current@freebsd.org Date: Sun, 8 Apr 2007 20:13:59 +0200 User-Agent: KMail/1.9.5 References: <20070406025700.GB98545@garage.freebsd.pl> <86k5wo55s0.fsf@dwp.des.no> <200704081910.42852.max@love2party.net> In-Reply-To: <200704081910.42852.max@love2party.net> X-Face: ,,8R(x[kmU]tKN@>gtH1yQE4aslGdu+2]; R]*pL,U>^H?)gW@49@wdJ`H<=?utf-8?q?=25=7D*=5FBD=0A=09U=5For=3D=5CmOZf764=26nYj=3DJYbR1PW0ud?=>|!~,,CPC.1-D$FG@0h3#'5"k{V]a~.<=?utf-8?q?mZ=7D44=23Se=7Em=0A=09Fe=7E=5C=5DX5B=5D=5Fxj?=(ykz9QKMw_l0C2AQ]}Ym8)fU MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1730977.T05y8ciJiq"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200704082014.06848.max@love2party.net> X-Provags-ID: V01U2FsdGVkX1/TsmNzCiILKoCY26DftHjk2dvCi6F3BxAm1aA TccsrXnIWkNy7Vu3yUiNO3IT8PYE+CyHpMcX31v23uXYeVoxSa i/4RB558CIX7O2tVlnexg== Cc: freebsd-fs@freebsd.org, Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?= , Pawel Jakub Dawidek Subject: Re: ZFS committed to the FreeBSD base. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Apr 2007 18:14:16 -0000 --nextPart1730977.T05y8ciJiq Content-Type: multipart/mixed; boundary="Boundary-01=_pDTGGLUrWjPd/IY" Content-Transfer-Encoding: 7bit Content-Disposition: inline --Boundary-01=_pDTGGLUrWjPd/IY Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Sunday 08 April 2007 19:10, Max Laier wrote: > On Saturday 07 April 2007 21:43, Dag-Erling Sm=F8rgrav wrote: > > Pawel Jakub Dawidek writes: > > > Limitations. > > > > > > Currently ZFS is only compiled as kernel module and is only > > > available for i386 architecture. Amd64 should be available very > > > soon, the other archs will come later, as we implement needed > > > atomic operations. > > > > ZFS is now also available on pc98 and amd64. > > panic: lock "zfs:&zap->zap_f.zap_num_entries_mtx" 0xffffff006582c260 > already initialized > > While dump/restoreing /usr to zfs. kgdb trace attached. Let me know > if you need further information. The attached diff lets me survive the dump/restore. Not sure if this is=20 the right fix, but seems like the union messes with mutex initialization. =2D-=20 /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News --Boundary-01=_pDTGGLUrWjPd/IY Content-Type: text/x-diff; charset="iso-8859-6"; name="zfs.dump.diff" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="zfs.dump.diff" Index: zap.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /usr/store/mlaier/fcvs/src/sys/contrib/opensolaris/uts/common/fs/= zfs/zap.c,v retrieving revision 1.1 diff -u -r1.1 zap.c =2D-- zap.c 6 Apr 2007 01:09:02 -0000 1.1 +++ zap.c 8 Apr 2007 17:48:07 -0000 @@ -84,6 +84,9 @@ (void) dmu_buf_update_user(zap->zap_dbuf, zap, zap, &zap->zap_f.zap_phys, zap_evict); =20 +#ifdef _KERNEL + memset(&zap->zap_f.zap_num_entries_mtx, 0, sizeof(struct mtx)); +#endif mutex_init(&zap->zap_f.zap_num_entries_mtx, NULL, MUTEX_DEFAULT, 0); zap->zap_f.zap_block_shift =3D highbit(zap->zap_dbuf->db_size) - 1; =20 --Boundary-01=_pDTGGLUrWjPd/IY-- --nextPart1730977.T05y8ciJiq Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQBGGTDuXyyEoT62BG0RAjxkAJ9K1rP5fze+6TvKCSpiDtEJ/Ob7QgCeN0nm 2IlZdXUnKaAV7JG4Ya4a3IY= =IuYE -----END PGP SIGNATURE----- --nextPart1730977.T05y8ciJiq--