diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2014-01-18 09:11:13 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2014-01-18 09:11:13 +0000 |
commit | 703841e59e89522d57d182597dd5f932ebf181c7 (patch) | |
tree | b1f116a196d7194424b4ff029aaf4f8dc1a65f34 /sbin/bioctl/bioctl.c | |
parent | 5d9a6f225ea47c9e0084b8aa8032ef1948ac07b7 (diff) |
Disable the RAID 5 discipline in bioctl, as the current softraid RAID 5
discipline will more than likely eat data if a drive is lost.
Discussed with krw@
Diffstat (limited to 'sbin/bioctl/bioctl.c')
-rw-r--r-- | sbin/bioctl/bioctl.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sbin/bioctl/bioctl.c b/sbin/bioctl/bioctl.c index fa6784f753a..a3d68c18118 100644 --- a/sbin/bioctl/bioctl.c +++ b/sbin/bioctl/bioctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bioctl.c,v 1.118 2014/01/18 09:01:01 jsing Exp $ */ +/* $OpenBSD: bioctl.c,v 1.119 2014/01/18 09:11:12 jsing Exp $ */ /* * Copyright (c) 2004, 2005 Marco Peereboom @@ -851,17 +851,21 @@ 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; case 'c': min_disks = 2; break; +#ifdef AOE case 'a': break; +#endif /* AOE */ default: errx(1, "unsupported raid level"); } |