Don't deregister the kld on resetconfig, only when we're really ready
to unload. This would cause a panic on the second resetconfig. Start Vinum at boot time at SI_SUB_RAID, not SI_SUB_VINUM. SI_SUB_VINUM was there first, but there's no real distinction, and SI_SUB_RAID is a more neutral name. Submitted by: hmp
This commit is contained in:
parent
a4c69f224b
commit
14b1df077e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=115764
@ -35,7 +35,7 @@
|
|||||||
* otherwise) arising in any way out of the use of this software, even if
|
* otherwise) arising in any way out of the use of this software, even if
|
||||||
* advised of the possibility of such damage.
|
* advised of the possibility of such damage.
|
||||||
*
|
*
|
||||||
* $Id: vinum.c,v 1.44 2003/05/23 00:50:55 grog Exp $
|
* $Id: vinum.c,v 1.44 2003/05/23 00:50:55 grog Exp grog $
|
||||||
* $FreeBSD$
|
* $FreeBSD$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -262,7 +262,6 @@ free_vinum(int cleardrive)
|
|||||||
}
|
}
|
||||||
bzero(&vinum_conf, sizeof(vinum_conf));
|
bzero(&vinum_conf, sizeof(vinum_conf));
|
||||||
vinum_conf.version = VINUMVERSION; /* reinstate version number */
|
vinum_conf.version = VINUMVERSION; /* reinstate version number */
|
||||||
EVENTHANDLER_DEREGISTER(dev_clone, dev_clone_tag);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
STATIC int
|
STATIC int
|
||||||
@ -315,6 +314,7 @@ vinum_modevent(module_t mod, modeventtype_t type, void *unused)
|
|||||||
for (i = 0; i < PLEXMUTEXES; i++)
|
for (i = 0; i < PLEXMUTEXES; i++)
|
||||||
mtx_destroy(&plexmutex[i]);
|
mtx_destroy(&plexmutex[i]);
|
||||||
log(LOG_INFO, "vinum: unloaded\n"); /* tell the world */
|
log(LOG_INFO, "vinum: unloaded\n"); /* tell the world */
|
||||||
|
EVENTHANDLER_DEREGISTER(dev_clone, dev_clone_tag);
|
||||||
return 0;
|
return 0;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
@ -328,7 +328,7 @@ static moduledata_t vinum_mod =
|
|||||||
(modeventhand_t) vinum_modevent,
|
(modeventhand_t) vinum_modevent,
|
||||||
0
|
0
|
||||||
};
|
};
|
||||||
DECLARE_MODULE(vinum, vinum_mod, SI_SUB_VINUM, SI_ORDER_MIDDLE);
|
DECLARE_MODULE(vinum, vinum_mod, SI_SUB_RAID, SI_ORDER_MIDDLE);
|
||||||
|
|
||||||
/* ARGSUSED */
|
/* ARGSUSED */
|
||||||
/* Open a vinum object */
|
/* Open a vinum object */
|
||||||
|
Loading…
Reference in New Issue
Block a user