diff options
author | Marco Peereboom <marco@cvs.openbsd.org> | 2006-06-19 19:09:05 +0000 |
---|---|---|
committer | Marco Peereboom <marco@cvs.openbsd.org> | 2006-06-19 19:09:05 +0000 |
commit | f447791215f435d2e010e7e16331e20b67bc7f50 (patch) | |
tree | 89c408666ead54a3e02847300a5e6b3c0d893c8a /sys/dev/ic | |
parent | 88808ef2cad0e3f288cd285abc2a51d1986cae7d (diff) |
Make a BGI (Back Ground Init) a scrub instead of rebuild.
Diffstat (limited to 'sys/dev/ic')
-rw-r--r-- | sys/dev/ic/mfi.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/sys/dev/ic/mfi.c b/sys/dev/ic/mfi.c index 0e88e61de3f..eee224a4a23 100644 --- a/sys/dev/ic/mfi.c +++ b/sys/dev/ic/mfi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mfi.c,v 1.59 2006/06/19 19:05:45 marco Exp $ */ +/* $OpenBSD: mfi.c,v 1.60 2006/06/19 19:09:04 marco Exp $ */ /* * Copyright (c) 2006 Marco Peereboom <marco@peereboom.us> * @@ -1334,6 +1334,7 @@ mfi_ioctl_vol(struct mfi_softc *sc, struct bioc_vol *bv) /* additional status can modify MFI status */ switch (sc->sc_ld_details.mld_progress.mlp_in_prog) { case MFI_LD_PROG_CC: + case MFI_LD_PROG_BGI: bv->bv_status = BIOC_SVSCRUB; per = (int)sc->sc_ld_details.mld_progress.mlp_cc.mp_progress; bv->bv_percent = (per * 100) / 0xffff; @@ -1341,14 +1342,6 @@ mfi_ioctl_vol(struct mfi_softc *sc, struct bioc_vol *bv) sc->sc_ld_details.mld_progress.mlp_cc.mp_elapsed_seconds; break; - case MFI_LD_PROG_BGI: - bv->bv_status = BIOC_SVBUILDING; - per = (int)sc->sc_ld_details.mld_progress.mlp_bgi.mp_progress; - bv->bv_percent = (per * 100) / 0xffff; - bv->bv_seconds = - sc->sc_ld_details.mld_progress.mlp_bgi.mp_elapsed_seconds; - break; - case MFI_LD_PROG_FGI: case MFI_LD_PROG_RECONSTRUCT: /* nothing yet */ |