Date: Sat, 21 Nov 2009 15:02:35 +0000 (UTC) From: Robert Noland <rnoland@FreeBSD.org> To: cvs-src-old@freebsd.org 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 Message-ID: <200911211503.nALF3JvZ012365@repoman.freebsd.org>
index | next in thread | raw e-mail
rnoland 2009-11-21 15:02:35 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_8)
sys/boot/i386/zfsboot zfsboot.c
sys/boot/zfs zfs.c zfsimpl.c
sys/cddl/boot/zfs zfsimpl.h
Log:
SVN rev 199634 on 2009-11-21 15:02:35Z 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.4.3 +19 -4 src/sys/boot/i386/zfsboot/zfsboot.c
1.4.4.2 +2 -2 src/sys/boot/zfs/zfs.c
1.5.4.2 +54 -17 src/sys/boot/zfs/zfsimpl.c
1.4.4.1 +18 -0 src/sys/cddl/boot/zfs/zfsimpl.h
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200911211503.nALF3JvZ012365>
