diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2009-12-07 14:33:39 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2009-12-07 14:33:39 +0000 |
commit | d1fdcc01a7fd020ab46e7f9fc73e2fb4e75fac99 (patch) | |
tree | 7d003cced3815146f681f529eb89a30e7bf37037 /sys/dev/softraid_raidp.c | |
parent | 42321b3620be40357f505baa65d4708c7cef5bdf (diff) |
Cleanup discipline initialisation.
ok marco@
Diffstat (limited to 'sys/dev/softraid_raidp.c')
-rw-r--r-- | sys/dev/softraid_raidp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/softraid_raidp.c b/sys/dev/softraid_raidp.c index a8b6ea386ca..7ff4ff89dd2 100644 --- a/sys/dev/softraid_raidp.c +++ b/sys/dev/softraid_raidp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: softraid_raidp.c,v 1.11 2009/12/07 14:27:12 jsing Exp $ */ +/* $OpenBSD: softraid_raidp.c,v 1.12 2009/12/07 14:33:38 jsing Exp $ */ /* * Copyright (c) 2009 Marco Peereboom <marco@peereboom.us> * Copyright (c) 2009 Jordan Hargrave <jordan@openbsd.org> @@ -65,10 +65,11 @@ void sr_put_block(struct sr_discipline *, void *); /* discipline initialisation. */ void -sr_raidp_discipline_init(struct sr_discipline *sd) +sr_raidp_discipline_init(struct sr_discipline *sd, u_int8_t type) { /* fill out discipline members. */ + sd->sd_type = type; sd->sd_capabilities = SR_CAP_SYSTEM_DISK | SR_CAP_AUTO_ASSEMBLE; sd->sd_max_ccb_per_wu = 4; /* only if stripsize <= MAXPHYS */ sd->sd_max_wu = SR_RAIDP_NOWU; |