From d8c8f72dd9235313ef5956ee84e7e115dbc64d7f Mon Sep 17 00:00:00 2001 From: Greg Lehey Date: Fri, 2 Jun 2000 04:02:15 +0000 Subject: [PATCH] give_sd_to_plex: Initialize sd->plexno correctly. Previously this was only being done at plex creation time, and an attach would leave the value uninitialized. --- sys/dev/vinum/vinumconfig.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sys/dev/vinum/vinumconfig.c b/sys/dev/vinum/vinumconfig.c index 81a1ad082c0..06850c8865c 100644 --- a/sys/dev/vinum/vinumconfig.c +++ b/sys/dev/vinum/vinumconfig.c @@ -45,7 +45,7 @@ * otherwise) arising in any way out of the use of this software, even if * advised of the possibility of such damage. * - * $Id: vinumconfig.c,v 1.29 2000/02/29 01:51:31 grog Exp grog $ + * $Id: vinumconfig.c,v 1.30 2000/05/01 09:45:50 grog Exp grog $ * $FreeBSD$ */ @@ -285,11 +285,12 @@ give_sd_to_plex(int plexno, int sdno) } /* - * The plex doesn't have any subdisk with a larger - * offset. Insert it + * The plex doesn't have any subdisk with a + * larger offset. Insert it here. */ plex->sdnos[i] = sdno; sd->plexsdno = i; /* note where we are in the subdisk */ + sd->plexno = plex->plexno; /* and who we belong to */ return i; }