summaryrefslogtreecommitdiffstats
path: root/sys/dev/softraid_raid1.c
diff options
context:
space:
mode:
authormarco <marco@openbsd.org>2009-06-02 05:49:35 +0000
committermarco <marco@openbsd.org>2009-06-02 05:49:35 +0000
commit52a42709af9edd6aa9ac1b57e2b0d65ea0bb9e74 (patch)
tree07a37da798b6fe6dfd65f19c03a2155e2d686bac /sys/dev/softraid_raid1.c
parentmake xl at pci detachable. (diff)
downloadwireguard-openbsd-52a42709af9edd6aa9ac1b57e2b0d65ea0bb9e74.tar.xz
wireguard-openbsd-52a42709af9edd6aa9ac1b57e2b0d65ea0bb9e74.zip
Add an identifier that tells us if we can rebuild this discipline.
KNF & spelling too
Diffstat (limited to 'sys/dev/softraid_raid1.c')
-rw-r--r--sys/dev/softraid_raid1.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/softraid_raid1.c b/sys/dev/softraid_raid1.c
index f705e1befa1..1eda42004e8 100644
--- a/sys/dev/softraid_raid1.c
+++ b/sys/dev/softraid_raid1.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: softraid_raid1.c,v 1.10 2009/06/02 00:58:16 marco Exp $ */
+/* $OpenBSD: softraid_raid1.c,v 1.11 2009/06/02 05:49:35 marco Exp $ */
/*
* Copyright (c) 2007 Marco Peereboom <marco@peereboom.us>
*
@@ -59,6 +59,7 @@ sr_raid1_discipline_init(struct sr_discipline *sd)
sd->sd_type = SR_MD_RAID1;
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;