From owner-cvs-src-old@FreeBSD.ORG Sat Nov 21 15:04:46 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C3C511065679 for ; Sat, 21 Nov 2009 15:04:46 +0000 (UTC) (envelope-from rnoland@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id B0D538FC13 for ; Sat, 21 Nov 2009 15:04:46 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id nALF4kcw012480 for ; Sat, 21 Nov 2009 15:04:46 GMT (envelope-from rnoland@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id nALF4k4I012479 for cvs-src-old@freebsd.org; Sat, 21 Nov 2009 15:04:46 GMT (envelope-from rnoland@repoman.freebsd.org) Message-Id: <200911211504.nALF4k4I012479@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to rnoland@repoman.freebsd.org using -f From: Robert Noland Date: Sat, 21 Nov 2009 15:04:01 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_7 Subject: cvs commit: src/sys/boot/i386/zfsboot zfsboot.c src/sys/boot/zfs zfs.c zfsimpl.c src/sys/cddl/boot/zfs zfsimpl.h X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Nov 2009 15:04:46 -0000 rnoland 2009-11-21 15:04:01 UTC FreeBSD src repository Modified files: (Branch: RELENG_7) sys/boot/i386/zfsboot zfsboot.c sys/boot/zfs zfs.c zfsimpl.c sys/cddl/boot/zfs zfsimpl.h Log: SVN rev 199635 on 2009-11-21 15:04:01Z by rnoland MFC 198420 Correct some issues with zfs boot. - Teach it to read gang blocks. (essentially untested) If you see "ZFS: gang block detected!", please let me know, so we can either remove the printf if it works, or fix it if it doesn't. - If multiple partitions exist on a disk, probe them all. We also need to reset dsk->start to 0 to read the right sector here. - With GPT, we can have 128 partitions. - If the bootfs property has ever been set on a pool it seems that it never goes away. zpool won't allow you to add to the pool with the bootfs property set. However, if you clear the property back to default we end up getting 0 for the object number and read a bogus block pointer and fail to boot. - Fix some error printfs. The printf in the loader is only capable of c,s and u formats. - Teach printf how to display %llu Revision Changes Path 1.3.2.3 +19 -4 src/sys/boot/i386/zfsboot/zfsboot.c 1.4.2.2 +2 -2 src/sys/boot/zfs/zfs.c 1.5.2.2 +54 -17 src/sys/boot/zfs/zfsimpl.c 1.4.2.2 +18 -0 src/sys/cddl/boot/zfs/zfsimpl.h