diff options
author | Thierry Deval <tdeval@cvs.openbsd.org> | 2002-03-31 13:12:10 +0000 |
---|---|---|
committer | Thierry Deval <tdeval@cvs.openbsd.org> | 2002-03-31 13:12:10 +0000 |
commit | e6eec0acc777c0c579244040e485c640e190d8a6 (patch) | |
tree | 525e79b75871b0047033daeb6f2e7dda131aa658 /sbin/raidctl | |
parent | aaa2303e0c9115c85b862a75f932b96d1aae47ce (diff) |
grmbl, restore meter display.
Diffstat (limited to 'sbin/raidctl')
-rw-r--r-- | sbin/raidctl/raidctl.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sbin/raidctl/raidctl.c b/sbin/raidctl/raidctl.c index 5e614dedad2..ca1e49266d0 100644 --- a/sbin/raidctl/raidctl.c +++ b/sbin/raidctl/raidctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: raidctl.c,v 1.16 2002/03/29 14:26:59 tdeval Exp $ */ +/* $OpenBSD: raidctl.c,v 1.17 2002/03/31 13:12:09 tdeval Exp $ */ /* $NetBSD: raidctl.c,v 1.27 2001/07/10 01:30:52 lukem Exp $ */ /*- @@ -911,6 +911,7 @@ check_status(fds, nfd, meter) int do_recon = 0; int do_parity = 0; int do_copyback = 0; + u_long check = 0; i = nfd; while (i--) { @@ -947,12 +948,15 @@ check_status(fds, nfd, meter) /* These 3 should be mutually exclusive at this point */ if (do_recon) { printf("Reconstruction status:\n"); + check = RAIDFRAME_CHECK_RECON_STATUS_EXT; } else if (do_parity) { printf("Parity Re-write status:\n"); + check = RAIDFRAME_CHECK_PARITYREWRITE_STATUS_EXT; } else if (do_copyback) { printf("Copyback status:\n"); + check = RAIDFRAME_CHECK_COPYBACK_STATUS_EXT; } - do_meter(fds, nfd, meter); + do_meter(fds, nfd, check); } } |