Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 May 2010 03:20:26 -0500
From:      "James R. Van Artsdalen" <james-freebsd-fs2@jrv.org>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: ZFS panic: wrong length 131072 for sectorsize 2352
Message-ID:  <4BFB884A.3010804@jrv.org>
In-Reply-To: <4BFA9AEC.1070608@jrv.org>
References:  <4BFA9AEC.1070608@jrv.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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;




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4BFB884A.3010804>