1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00

Fix a locking problem with MD_ROOT_SIZE.

Retire md(4)'s static major number.
This commit is contained in:
Poul-Henning Kamp 2003-12-13 18:12:58 +00:00
parent a27f75251a
commit 0a93720637
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=123521
2 changed files with 3 additions and 7 deletions

View File

@ -100,7 +100,6 @@
91 *vinum Volume manager
92 *bktr Bt848 video capture driver (hasty@star-gate.com)
93 *coda CODA filesystem.
95 *md Memory Disk
96 altq alternate queueing (including cbq, red, wfq)
97 *prom Alpha PROM console
98 loe Loopback pseudo-ethernet (sbabkin@dcn.att.com)

View File

@ -113,14 +113,11 @@ static int mdrootready;
static int mdunits;
static dev_t status_dev = 0;
#define CDEV_MAJOR 95
static d_ioctl_t mdctlioctl;
static struct cdevsw mdctl_cdevsw = {
.d_ioctl = mdctlioctl,
.d_name = MD_NAME,
.d_maj = CDEV_MAJOR
};
@ -1171,11 +1168,11 @@ md_drvinit(struct g_class *mp __unused)
u_char *ptr, *name, *type;
unsigned len;
mod = NULL;
g_topology_unlock();
#ifdef MD_ROOT_SIZE
md_preloaded(mfs_root, MD_ROOT_SIZE*1024);
#endif
mod = NULL;
g_topology_unlock();
while ((mod = preload_search_next_name(mod)) != NULL) {
name = (char *)preload_search_info(mod, MODINFO_NAME);
type = (char *)preload_search_info(mod, MODINFO_TYPE);
@ -1228,7 +1225,7 @@ static moduledata_t md_mod = {
md_modevent,
NULL
};
DECLARE_MODULE(md, md_mod, SI_SUB_DRIVERS, SI_ORDER_MIDDLE+CDEV_MAJOR);
DECLARE_MODULE(md, md_mod, SI_SUB_DRIVERS, SI_ORDER_MIDDLE);
MODULE_VERSION(md, MD_MODVER);