kernel - vinum - Fix volume number for 'vinum read'
authorMatthew Dillon <dillon@apollo.backplane.com>
Sun, 28 Mar 2010 18:05:46 +0000 (11:05 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sun, 28 Mar 2010 18:05:46 +0000 (11:05 -0700)
* vinum read was not assigning the proper volume number, resulting in
  broken devices in /dev/vinum/vol.

Submitted-by: Rumko
sys/dev/raid/vinum/vinumconfig.c

index 3b926f3..c5b27dd 100644 (file)
@@ -1558,6 +1558,7 @@ config_volume(int update)
            parameter++;                                    /* skip the keyword */
            if (vinum_conf.flags & VF_READING_CONFIG) {
                vol->state = VolState(token[parameter]);    /* set the state */
+               vol->volno = volno;     /* needs correct volno to make devs */
                made_vol(vol);
            }
            break;