summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgrog <grog@FreeBSD.org>2003-12-15 00:45:53 +0000
committergrog <grog@FreeBSD.org>2003-12-15 00:45:53 +0000
commit4e5dbb61a0801de84944bbced511da182307a41f (patch)
treef1722b3d093d9e997872ab9b131ac7ef718ae521
parent53cb42cc7c307a9b8705b972b45881e065cd0a91 (diff)
downloadFreeBSD-src-4e5dbb61a0801de84944bbced511da182307a41f.zip
FreeBSD-src-4e5dbb61a0801de84944bbced511da182307a41f.tar.gz
initsd: For striped and RAID-[45] plexes, don't restrict the I/O
transfer size to the stripe size. This is a different situation from reviving, where this limitation is necessary. In initsd we're simply writing binary zeroes to the entire disk, so the only effect of limiting the transfer is to slow things down.
-rw-r--r--sys/dev/vinum/vinumrevive.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/dev/vinum/vinumrevive.c b/sys/dev/vinum/vinumrevive.c
index 951c30a..59a91a9 100644
--- a/sys/dev/vinum/vinumrevive.c
+++ b/sys/dev/vinum/vinumrevive.c
@@ -535,11 +535,7 @@ initsd(int sdno, int verify)
vol = NULL;
if (sd->init_blocksize == 0) {
- if (plex->stripesize != 0) /* we're striped, don't init more than */
- sd->init_blocksize = min(DEFAULT_REVIVE_BLOCKSIZE, /* one block at a time */
- plex->stripesize << DEV_BSHIFT);
- else
- sd->init_blocksize = DEFAULT_REVIVE_BLOCKSIZE;
+ sd->init_blocksize = DEFAULT_REVIVE_BLOCKSIZE;
} else if (sd->init_blocksize > MAX_REVIVE_BLOCKSIZE)
sd->init_blocksize = MAX_REVIVE_BLOCKSIZE;
OpenPOWER on IntegriCloud