From owner-freebsd-fs@FreeBSD.ORG Fri Nov 13 01:12:09 2009 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 B1CB1106568D; Fri, 13 Nov 2009 01:12:09 +0000 (UTC) (envelope-from mattjreimer@gmail.com) Received: from mail-pw0-f44.google.com (mail-pw0-f44.google.com [209.85.160.44]) by mx1.freebsd.org (Postfix) with ESMTP id 775F88FC1C; Fri, 13 Nov 2009 01:12:09 +0000 (UTC) Received: by pwj15 with SMTP id 15so1866771pwj.3 for ; Thu, 12 Nov 2009 17:12:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=qwcZdGxprnJhQlYTq8U1772wRGxMSE2twEDuMwip9Xk=; b=ehhUWK84/U9xHNCCgYVMuuqLTVHJumzcLMfiAl8zcL3D0jIgB/qoEE9kK7mVX2+2v7 tBHmlHQ6c1BzpgTdp4N9IOZlg47CppjYNcABIMaUlbnTQEOueYZY0uARR27ViQJ9fWgg LXKURfksOBHBZe8jDwgf4rg1LQqiIo/R8fik4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=P8dX6ejB2fK9Io3m5BaWS2cGX0FoHmEbVLcE205gpYiW595Q5yGH3lkY5HbCX36bN/ vuRNLKdxZ4zPGJuWCYhOWkP7DnfnIi0bxKMxbDA5GuF4c7ZoNT8s+wUzoS7tfv+UG65L 2kExQ3SWGUpNbYMDBLtcUHDOfYFqudLEmCDnE= MIME-Version: 1.0 Received: by 10.142.196.18 with SMTP id t18mr422896wff.32.1258074281549; Thu, 12 Nov 2009 17:04:41 -0800 (PST) In-Reply-To: References: <4AD710D6.70404@buchlovice.org> Date: Thu, 12 Nov 2009 17:04:41 -0800 Message-ID: From: Matt Reimer To: =?ISO-8859-2?Q?Radek_Val=E1=B9ek?= Content-Type: multipart/mixed; boundary=000e0cd32f54a7210c0478363e64 Cc: freebsd-fs@freebsd.org, freebsd-current@freebsd.org, rnoland@freebsd.org Subject: Re: GPT boot with ZFS RAIDZ "ZFS: i/o error - all block copies unavailable" 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: Fri, 13 Nov 2009 01:12:09 -0000 --000e0cd32f54a7210c0478363e64 Content-Type: text/plain; charset=ISO-8859-1 2009/11/12 Matt Reimer : > > Radek, > > Try the attached patch (sponsored by VPOP Technologies). I found an > overflow in /sys/cddl/boot/zfs/zfssubr.c:vdev_raidz_read() that was > causing my 6x1TB raidz2 array to fail to boot. > > Apply the patch, build everything in /sys/boot, and then make sure you > update both gptzfsboot and /boot/loader. Oops, here's the patch. Matt --000e0cd32f54a7210c0478363e64 Content-Type: application/octet-stream; name="zfssubr.c.patch" Content-Disposition: attachment; filename="zfssubr.c.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_g1y8xrsy0 LS0tIHpmc3N1YnIuYy5vcmlnCTIwMDktMTAtMjQgMTg6MTA6MjkuMDAwMDAwMDAwIC0wNzAwCisr KyB6ZnNzdWJyLmMJMjAwOS0xMS0xMiAxNjozNzowNS4wMDAwMDAwMDAgLTA4MDAKQEAgLTU1MCw3 ICs1NTAsOCBAQAogCXVpbnQ2NF90IHMgPSBwc2l6ZSA+PiB1bml0X3NoaWZ0OwogCXVpbnQ2NF90 IGYgPSBiICUgZGNvbHM7CiAJdWludDY0X3QgbyA9IChiIC8gZGNvbHMpIDw8IHVuaXRfc2hpZnQ7 Ci0JaW50IHEsIHIsIGMsIGMxLCBiYywgY29sLCBhY29scywgY29mZiwgZGV2aWR4LCBhc2l6ZSwg bjsKKwl1aW50NjRfdCBxLCByLCBjb2ZmOworCWludCBjLCBjMSwgYmMsIGNvbCwgYWNvbHMsIGRl dmlkeCwgYXNpemUsIG47CiAJc3RhdGljIHJhaWR6X2NvbF90IGNvbHNbMTZdOwogCXJhaWR6X2Nv bF90ICpyYywgKnJjMTsKIAo= --000e0cd32f54a7210c0478363e64--