summaryrefslogtreecommitdiff
path: root/sys/dev/softraid_raid1.c
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2009-12-07 14:27:13 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2009-12-07 14:27:13 +0000
commit42321b3620be40357f505baa65d4708c7cef5bdf (patch)
tree3bc215090eb6e4dc8da078393f0bdb5664cca79c /sys/dev/softraid_raid1.c
parent4b91ffe23be5b8782f30cc0dddd0593da1548ac5 (diff)
Define discipline capabilities using a set of flags.
"shiny!!" marco@
Diffstat (limited to 'sys/dev/softraid_raid1.c')
-rw-r--r--sys/dev/softraid_raid1.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/softraid_raid1.c b/sys/dev/softraid_raid1.c
index dd655c2f35a..939afa3f602 100644
--- a/sys/dev/softraid_raid1.c
+++ b/sys/dev/softraid_raid1.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: softraid_raid1.c,v 1.19 2009/08/09 14:12:25 marco Exp $ */
+/* $OpenBSD: softraid_raid1.c,v 1.20 2009/12/07 14:27:12 jsing Exp $ */
/*
* Copyright (c) 2007 Marco Peereboom <marco@peereboom.us>
*
@@ -57,9 +57,10 @@ sr_raid1_discipline_init(struct sr_discipline *sd)
/* Fill out discipline members. */
sd->sd_type = SR_MD_RAID1;
+ sd->sd_capabilities = SR_CAP_SYSTEM_DISK | SR_CAP_AUTO_ASSEMBLE |
+ SR_CAP_REBUILD;
sd->sd_max_ccb_per_wu = sd->sd_meta->ssdi.ssd_chunk_no;
sd->sd_max_wu = SR_RAID1_NOWU;
- sd->sd_rebuild = 1;
/* Setup discipline pointers. */
sd->sd_alloc_resources = sr_raid1_alloc_resources;