diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2015-04-11 16:37:35 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2015-04-11 16:37:35 +0000 |
commit | 63bf5da29f892b8ed41022a6d1f628cf7e98a2de (patch) | |
tree | 9c73909afad804c09ffa111422cfae0aaa402992 /sbin | |
parent | 901f829acc4abc1a85823a3379130207cc6a14b6 (diff) |
Re-enable the RAID 5 discipline for softraid(4).
The RAID 5 implementation has been largely rewritten during the last two
hackathons in Dunedin - it now needs further testing and usage.
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/bioctl/bioctl.8 | 14 | ||||
-rw-r--r-- | sbin/bioctl/bioctl.c | 4 |
2 files changed, 8 insertions, 10 deletions
diff --git a/sbin/bioctl/bioctl.8 b/sbin/bioctl/bioctl.8 index 8cb965eaa25..2eb5bcba00c 100644 --- a/sbin/bioctl/bioctl.8 +++ b/sbin/bioctl/bioctl.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: bioctl.8,v 1.94 2015/02/28 21:51:57 bentley Exp $ +.\" $OpenBSD: bioctl.8,v 1.95 2015/04/11 16:37:34 jsing Exp $ .\" .\" Copyright (c) 2004, 2005 Marco Peereboom .\" @@ -23,7 +23,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd $Mdocdate: February 28 2015 $ +.Dd $Mdocdate: April 11 2015 $ .Dt BIOCTL 8 .Os .Sh NAME @@ -194,9 +194,9 @@ A striping discipline. .It 1 RAID 1: A mirroring discipline. -.\" .It 5 -.\" RAID 5: -.\" A striping discipline with floating parity chunk. +.It 5 +RAID 5: +A striping discipline with floating parity chunk. .It C CRYPTO: An encrypting discipline. @@ -207,8 +207,8 @@ A concatenating discipline. .Pp The RAID 0, RAID 1 and CONCAT disciplines require a minimum of two devices to be provided via -.Fl l -.\" RAID 5 requires at least three devices, +.Fl l . +RAID 5 requires at least three devices and the CRYPTO discipline requires exactly one. .It Fl d Delete volume specified by device. diff --git a/sbin/bioctl/bioctl.c b/sbin/bioctl/bioctl.c index e823581c832..393f1d54942 100644 --- a/sbin/bioctl/bioctl.c +++ b/sbin/bioctl/bioctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bioctl.c,v 1.124 2015/03/18 07:42:13 uebayasi Exp $ */ +/* $OpenBSD: bioctl.c,v 1.125 2015/04/11 16:37:34 jsing Exp $ */ /* * Copyright (c) 2004, 2005 Marco Peereboom @@ -785,11 +785,9 @@ bio_createraid(u_int16_t level, char *dev_list, char *key_disk) case 1: min_disks = 2; break; -#ifdef RAID5 case 5: min_disks = 3; break; -#endif /* RAID5 */ case 'C': min_disks = 1; break; |