ZFS panic: wrong length 131072 for sectorsize 2352

James R. Van Artsdalen james-freebsd-fs2 at jrv.org
Tue May 25 08:19:56 UTC 2010


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;



More information about the freebsd-fs mailing list