summaryrefslogtreecommitdiff
path: root/sys/dev/softraidvar.h
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/softraidvar.h
parent4b91ffe23be5b8782f30cc0dddd0593da1548ac5 (diff)
Define discipline capabilities using a set of flags.
"shiny!!" marco@
Diffstat (limited to 'sys/dev/softraidvar.h')
-rw-r--r--sys/dev/softraidvar.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/dev/softraidvar.h b/sys/dev/softraidvar.h
index da5569b8085..76303ed59c1 100644
--- a/sys/dev/softraidvar.h
+++ b/sys/dev/softraidvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: softraidvar.h,v 1.84 2009/11/24 02:19:35 jsing Exp $ */
+/* $OpenBSD: softraidvar.h,v 1.85 2009/12/07 14:27:12 jsing Exp $ */
/*
* Copyright (c) 2006 Marco Peereboom <marco@peereboom.us>
* Copyright (c) 2008 Chris Kuethe <ckuethe@openbsd.org>
@@ -420,6 +420,11 @@ struct sr_discipline {
u_int8_t sd_scsibus; /* scsibus discipline uses */
struct scsi_link sd_link; /* link to midlayer */
+ u_int32_t sd_capabilities;
+#define SR_CAP_SYSTEM_DISK 0x00000001
+#define SR_CAP_AUTO_ASSEMBLE 0x00000002
+#define SR_CAP_REBUILD 0x00000004
+
union {
struct sr_raid0 mdd_raid0;
struct sr_raid1 mdd_raid1;
@@ -456,7 +461,6 @@ struct sr_discipline {
struct sr_workunit *sd_wu; /* all workunits */
u_int32_t sd_max_wu;
- int sd_rebuild; /* can we rebuild? */
int sd_reb_active; /* rebuild in progress */
int sd_reb_abort; /* abort rebuild */
int sd_ready; /* fully operational */