summaryrefslogtreecommitdiff
path: root/sys/boot/zfs/zfsimpl.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Instead of assuming all vdevs are healthy, check the newest vdev labelXin LI2010-01-061-22/+66
| | | | | | | | | | | | for each vdev's status. Booting from a degraded vdev should now be more robust. Submitted by: Matt Reimer <mattjreimer at gmail.com> Sponsored by: VPOP Technologies, Inc. MFC after: 2 weeks Notes: svn path=/head/; revision=201689
* - Port bios_getmem() from libi386 to {gpt,}zfsboot() and use it toJohn Baldwin2009-12-091-1/+1
| | | | | | | | | | | | | safely allocate a heap region above 1MB. This enables {gpt,}zfsboot() to allocate much larger buffers than before. - Use a larger buffer (1MB instead of 128K) for temporary ZFS buffers. This allows more reliable reading of compressed files in a raidz/raidz2 pool. Submitted by: Matt Reimer mattjreimer of gmail MFC after: 1 week Notes: svn path=/head/; revision=200309
* Correct some issues with zfs boot.Robert Noland2009-10-231-17/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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 Reviewed by: dfr, jhb MFC after: 2 weeks Notes: svn path=/head/; revision=198420
* Add support for booting from raidz1 and raidz2 pools.Doug Rabson2009-05-161-65/+144
| | | | Notes: svn path=/head/; revision=192194
* Use full 64bit arithmetic when converting file offsets to block numbers - fixesDoug Rabson2008-12-171-9/+4
| | | | | | | | | booting on filesystems with inode numbers with values above 4194304. Submitted by: ps Notes: svn path=/head/; revision=186243
* Don't get confused if we encounter a device which is part of a raidz or raidz2Doug Rabson2008-12-101-2/+4
| | | | | | | | | | pool while probing for vdevs. PR: 129539 Submitted by: Paul Wootton (paul at fletchermoorland dot co dot uk) Notes: svn path=/head/; revision=185852
* Some zfsboot fixes from Norikatsu Shigemura:Doug Rabson2008-11-191-2/+3
| | | | | | | | | | | 1. zfsboot2 (boot2) doesn't %d (printf), so change %d to %u. 2. chase new zpool versioning as SPA_VERSION. Obtained from: sys/cddl/contrib/opensolaris/uts/common/sys/fs/zfs.h Submitted by: nork Notes: svn path=/head/; revision=185097
* Update ZFS from version 6 to 13 and bring some FreeBSD-specific changes.Pawel Jakub Dawidek2008-11-171-0/+1443
This bring huge amount of changes, I'll enumerate only user-visible changes: - Delegated Administration Allows regular users to perform ZFS operations, like file system creation, snapshot creation, etc. - L2ARC Level 2 cache for ZFS - allows to use additional disks for cache. Huge performance improvements mostly for random read of mostly static content. - slog Allow to use additional disks for ZFS Intent Log to speed up operations like fsync(2). - vfs.zfs.super_owner Allows regular users to perform privileged operations on files stored on ZFS file systems owned by him. Very careful with this one. - chflags(2) Not all the flags are supported. This still needs work. - ZFSBoot Support to boot off of ZFS pool. Not finished, AFAIK. Submitted by: dfr - Snapshot properties - New failure modes Before if write requested failed, system paniced. Now one can select from one of three failure modes: - panic - panic on write error - wait - wait for disk to reappear - continue - serve read requests if possible, block write requests - Refquota, refreservation properties Just quota and reservation properties, but don't count space consumed by children file systems, clones and snapshots. - Sparse volumes ZVOLs that don't reserve space in the pool. - External attributes Compatible with extattr(2). - NFSv4-ACLs Not sure about the status, might not be complete yet. Submitted by: trasz - Creation-time properties - Regression tests for zpool(8) command. Obtained from: OpenSolaris Notes: svn path=/head/; revision=185029