Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic mfi(4): Set stripe size correctly for BIOCVOL.
details: https://anonhg.NetBSD.org/src/rev/7bd5914a0ed3
branches: trunk
changeset: 366030:7bd5914a0ed3
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Tue May 10 14:13:37 2022 +0000
description:
mfi(4): Set stripe size correctly for BIOCVOL.
Before:
Volume Status Size Device/Label Level Stripe
=============================================================
0 Online 5.5T mfi0 RAID 5 N/A 65535 seconds
After:
Volume Status Size Device/Label Level Stripe
=============================================================
0 Online 5.5T mfi0 RAID 5 64K 65535 seconds
diffstat:
sys/dev/ic/mfi.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r b3885ac12bf9 -r 7bd5914a0ed3 sys/dev/ic/mfi.c
--- a/sys/dev/ic/mfi.c Tue May 10 14:13:09 2022 +0000
+++ b/sys/dev/ic/mfi.c Tue May 10 14:13:37 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mfi.c,v 1.74 2022/05/09 17:13:30 msaitoh Exp $ */
+/* $NetBSD: mfi.c,v 1.75 2022/05/10 14:13:37 msaitoh Exp $ */
/* $OpenBSD: mfi.c,v 1.66 2006/11/28 23:59:45 dlg Exp $ */
/*
@@ -73,7 +73,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mfi.c,v 1.74 2022/05/09 17:13:30 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mfi.c,v 1.75 2022/05/10 14:13:37 msaitoh Exp $");
#include "bio.h"
@@ -2124,6 +2124,9 @@
sc->sc_ld_details.mld_cfg.mlc_parm.mpa_span_depth;
bv->bv_size = sc->sc_ld_details.mld_size * 512; /* bytes per block */
+ bv->bv_stripe_size =
+ (512 << sc->sc_ld_details.mld_cfg.mlc_parm.mpa_stripe_size)
+ / 1024; /* in KB */
rv = 0;
done:
Home |
Main Index |
Thread Index |
Old Index