From owner-freebsd-fs@FreeBSD.ORG Tue May 25 08:19:56 2010 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 4C104106566C for ; Tue, 25 May 2010 08:19:56 +0000 (UTC) (envelope-from james-freebsd-fs2@jrv.org) Received: from zimbra.jrv.org (adsl-70-243-84-11.dsl.austtx.swbell.net [70.243.84.11]) by mx1.freebsd.org (Postfix) with ESMTP id 1DF4C8FC12 for ; Tue, 25 May 2010 08:19:55 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by zimbra.jrv.org (Postfix) with ESMTP id ACCC116A059 for ; Tue, 25 May 2010 03:19:54 -0500 (CDT) X-Virus-Scanned: amavisd-new at zimbra.housenet.jrv Received: from zimbra.jrv.org ([127.0.0.1]) by localhost (zimbra.housenet.jrv [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mUTKKlDP4hBP for ; Tue, 25 May 2010 03:19:54 -0500 (CDT) Received: from [10.0.2.15] (adsl-70-243-84-14.dsl.austtx.swbell.net [70.243.84.14]) by zimbra.jrv.org (Postfix) with ESMTPSA id 3863A16A04A for ; Tue, 25 May 2010 03:19:54 -0500 (CDT) Message-ID: <4BFB884A.3010804@jrv.org> Date: Tue, 25 May 2010 03:20:26 -0500 From: "James R. Van Artsdalen" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 CC: freebsd-fs@freebsd.org References: <4BFA9AEC.1070608@jrv.org> In-Reply-To: <4BFA9AEC.1070608@jrv.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: ZFS panic: wrong length 131072 for sectorsize 2352 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, 25 May 2010 08:19:56 -0000 On 5/24/2010 10:27 AM, James R. Van Artsdalen wrote: > panic: wrong length 131072 for sectorsize 2352 This fixes the bug. Index: sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c =================================================================== --- sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c (revision 208373) +++ sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c (working copy) @@ -250,6 +250,9 @@ if ((offset % pp->sectorsize) != 0) continue; + if ((size % pp->sectorsize) != 0) + continue; + if (vdev_geom_io(cp, BIO_READ, label, offset, size) != 0) continue; buf = label->vl_vdev_phys.vp_nvlist;