From owner-freebsd-fs@FreeBSD.ORG Sat Nov 26 12:49:30 2011 Return-Path: Delivered-To: freebsd-fs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C01E5106566B; Sat, 26 Nov 2011 12:49:30 +0000 (UTC) (envelope-from florian@wagner-flo.net) Received: from umbracor.wagner-flo.net (umbracor.wagner-flo.net [213.165.81.202]) by mx1.freebsd.org (Postfix) with ESMTP id 760098FC08; Sat, 26 Nov 2011 12:49:30 +0000 (UTC) Received: from naclador.mos32.de (ppp-188-174-34-223.dynamic.mnet-online.de [188.174.34.223]) by umbracor.wagner-flo.net (Postfix) with ESMTPSA id 5D4F83C07F00; Sat, 26 Nov 2011 13:49:29 +0100 (CET) Date: Sat, 26 Nov 2011 13:49:27 +0100 From: Florian Wagner To: Andriy Gapon Message-ID: <20111126134927.60fe5097@naclador.mos32.de> In-Reply-To: <4ED0CFF9.4030503@FreeBSD.org> References: <20111015214347.09f68e4e@naclador.mos32.de> <4E9ACA9F.5090308@FreeBSD.org> <20111019082139.1661868e@auedv3.syscomp.de> <4E9EEF45.9020404@FreeBSD.org> <20111019182130.27446750@naclador.mos32.de> <4EB98E05.4070900@FreeBSD.org> <20111119211921.7ffa9953@naclador.mos32.de> <4EC8CD14.4040600@FreeBSD.org> <20111120121248.5e9773c8@naclador.mos32.de> <4EC91B36.7060107@FreeBSD.org> <20111120191018.1aa4e882@naclador.mos32.de> <4ECA2DBD.5040701@FreeBSD.org> <20111121201332.03ecadf1@naclador.mos32.de> <4ECAC272.5080500@FreeBSD.org> <4ECEBD44.6090900@FreeBSD.org> <20111125224722.6cf3a299@naclador.mos32.de> <4ED0CFF9.4030503@FreeBSD.org> X-Mailer: Claws Mail 3.7.10 (GTK+ 2.24.5; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_//+8v1rer=FeMFRn.9d_uvdF"; protocol="application/pgp-signature" Cc: freebsd-fs@FreeBSD.org Subject: Re: Extending zfsboot.c to allow selecting filesystem from boot.config 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: Sat, 26 Nov 2011 12:49:30 -0000 --Sig_//+8v1rer=FeMFRn.9d_uvdF Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Sat, 26 Nov 2011 13:39:37 +0200 Andriy Gapon wrote: > on 25/11/2011 23:47 Florian Wagner said the following: > > No more memory corruptions with the patch, but booting now stops > > with "ZFS: zfs_alloc()/zfs_free() mismatch". >=20 > This happens only with real boot, not with zfsboottest? Yes, zfsboottest works without issues. > > If I comment out lines 145-148 in the zfsboottest.c you linked, I > > can successfully read files from the pool by doing ./zfsboottest > > >=20 > Ah, right, those lines were left there by mistake during merge. >=20 > > . This also works correctly when omitting up to two > > vdevs of my RAID-Z2 pool: > >=20 > > # ./zfsboottest /boot/zfsloader /dev/da{0,1,2}p2 2>/dev/null | md5 > > 336c56a04c8d6d432df999b35ce459f7 > > # md5 /boot/zfsloader > > MD5 (/boot/zfsloader) =3D 336c56a04c8d6d432df999b35ce459f7 > >=20 > >=20 > > After applying the patch from [1] (the thread references the same > > output I get, even if the conclusion doesn't fit) I can sometimes > > boot my VM. This seems to correlate with how much is written to the > > pool. Quickly rebooting after the system comes up works, but > > waiting a few minutes always results in getting the mismatch error > > on the reboot. After that only booting with unpatched gptzfsboot > > works (whereafter the patched one works again for one reboot or so). >=20 > Oh, strangeness... Yeah. I'll try applying your patches to head instead of stable/8 in the next days and test that. To make matters easier, can you tell me which revision of head they are based on? Regards Florian --Sig_//+8v1rer=FeMFRn.9d_uvdF Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iEYEARECAAYFAk7Q4FgACgkQLvW/2gp2pPyEbACfYIAhVtowcLSjSsDtSPij7pvN 49kAni1M1DfSjNs3Sr5XXrmf37s816gZ =0tQe -----END PGP SIGNATURE----- --Sig_//+8v1rer=FeMFRn.9d_uvdF--