summaryrefslogtreecommitdiffstats
path: root/sys/dev/twe/twe.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/twe/twe.c')
-rw-r--r--sys/dev/twe/twe.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/twe/twe.c b/sys/dev/twe/twe.c
index 90dfa2e..6994cb4 100644
--- a/sys/dev/twe/twe.c
+++ b/sys/dev/twe/twe.c
@@ -201,7 +201,7 @@ twe_add_unit(struct twe_softc *sc, int unit)
int table, error = 0;
u_int16_t dsize;
TWE_Param *drives = NULL, *param = NULL;
- TWE_Unit_Descriptor *ud;
+ TWE_Array_Descriptor *ud;
if (unit < 0 || unit > TWE_MAX_UNITS)
return (EINVAL);
@@ -244,8 +244,9 @@ twe_add_unit(struct twe_softc *sc, int unit)
error = EIO;
goto out;
}
- ud = (TWE_Unit_Descriptor *)param->data;
+ ud = (TWE_Array_Descriptor *)param->data;
dr->td_type = ud->configuration;
+ dr->td_stripe = ud->stripe_size;
/* build synthetic geometry as per controller internal rules */
if (dr->td_size > 0x200000) {
OpenPOWER on IntegriCloud