summaryrefslogtreecommitdiffstats
path: root/sys/dev/vinum
diff options
context:
space:
mode:
authorgrog <grog@FreeBSD.org>2000-06-02 04:02:15 +0000
committergrog <grog@FreeBSD.org>2000-06-02 04:02:15 +0000
commit25e1326b4bfb649e510fd820d64c280f83a4e178 (patch)
tree0dae2b386ef21c550b893bf870f88249c5332937 /sys/dev/vinum
parent83a3e081eb1aa94eea26f5ce02c19f117a47f4f6 (diff)
downloadFreeBSD-src-25e1326b4bfb649e510fd820d64c280f83a4e178.zip
FreeBSD-src-25e1326b4bfb649e510fd820d64c280f83a4e178.tar.gz
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.
Diffstat (limited to 'sys/dev/vinum')
-rw-r--r--sys/dev/vinum/vinumconfig.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/vinum/vinumconfig.c b/sys/dev/vinum/vinumconfig.c
index 81a1ad0..06850c8 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;
}
OpenPOWER on IntegriCloud