diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2009-12-07 14:27:13 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2009-12-07 14:27:13 +0000 |
commit | 42321b3620be40357f505baa65d4708c7cef5bdf (patch) | |
tree | 3bc215090eb6e4dc8da078393f0bdb5664cca79c /sys/dev/softraid_raid6.c | |
parent | 4b91ffe23be5b8782f30cc0dddd0593da1548ac5 (diff) |
Define discipline capabilities using a set of flags.
"shiny!!" marco@
Diffstat (limited to 'sys/dev/softraid_raid6.c')
-rw-r--r-- | sys/dev/softraid_raid6.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/softraid_raid6.c b/sys/dev/softraid_raid6.c index 46eff9f9691..1d01c4f78e8 100644 --- a/sys/dev/softraid_raid6.c +++ b/sys/dev/softraid_raid6.c @@ -1,4 +1,4 @@ -/* $OpenBSD: softraid_raid6.c,v 1.7 2009/11/13 23:34:24 jordan Exp $ */ +/* $OpenBSD: softraid_raid6.c,v 1.8 2009/12/07 14:27:12 jsing Exp $ */ /* * Copyright (c) 2009 Marco Peereboom <marco@peereboom.us> * Copyright (c) 2009 Jordan Hargrave <jordan@openbsd.org> @@ -124,13 +124,14 @@ struct sr_raid6_opaque { void sr_raid6_discipline_init(struct sr_discipline *sd) { + /* Initialize GF256 tables */ gf_init(); /* fill out discipline members. */ + sd->sd_capabilities = SR_CAP_SYSTEM_DISK | SR_CAP_AUTO_ASSEMBLE; sd->sd_max_ccb_per_wu = max(6, 2 * sd->sd_meta->ssdi.ssd_chunk_no); /* only if stripsize <= MAXPHYS */ sd->sd_max_wu = SR_RAID6_NOWU; - sd->sd_rebuild = 0; /* setup discipline pointers. */ sd->sd_alloc_resources = sr_raid6_alloc_resources; |