From dac500a9622b6e82e3e860f5340bf9fb6804894f Mon Sep 17 00:00:00 2001 From: grog Date: Mon, 2 Nov 1998 04:10:19 +0000 Subject: Get the default revive blocksize right for striped and RAID-5 plexes --- sys/dev/vinum/vinumrevive.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/vinum/vinumrevive.c b/sys/dev/vinum/vinumrevive.c index 216dc48..2d93524 100644 --- a/sys/dev/vinum/vinumrevive.c +++ b/sys/dev/vinum/vinumrevive.c @@ -33,7 +33,7 @@ * otherwise) arising in any way out of the use of this software, even if * advised of the possibility of such damage. * - * $Id: revive.c,v 1.1.1.1 1998/09/16 05:56:21 grog Exp $ + * $Id: revive.c,v 1.3 1998/10/30 00:56:38 grog Exp grog $ */ #define REALLYKERNEL @@ -51,12 +51,13 @@ revive_block(int plexno) struct plex *plex = &PLEX[plexno]; struct buf *bp; int error = EAGAIN; - int size; + int size; /* size of revive block, bytes */ int s; /* priority level */ if (plex->revive_blocksize == 0) { if (plex->stripesize != 0) /* we're striped, don't revive more than */ - plex->revive_blocksize = min(DEFAULT_REVIVE_BLOCKSIZE, plex->stripesize); /* one block at a time */ + plex->revive_blocksize = min(DEFAULT_REVIVE_BLOCKSIZE, /* one block at a time */ + plex->stripesize << DEV_BSHIFT); else plex->revive_blocksize = DEFAULT_REVIVE_BLOCKSIZE; } -- cgit v1.1