change the name of the md module, to g_md, introduce a define with the

name MD_MODNAME, and make mdconfig use this new define...
This commit is contained in:
John-Mark Gurney 2004-08-09 06:45:20 +00:00
parent 157b106eae
commit a246f097d6
3 changed files with 3 additions and 2 deletions

View File

@ -292,7 +292,7 @@ mdmaybeload(void)
const char *name;
char *cp;
name = MD_NAME;
name = MD_MODNAME;
/* scan files in kernel */
mstat.version = sizeof(struct module_stat);
for (fileid = kldnext(0); fileid > 0; fileid = kldnext(fileid)) {

View File

@ -2,7 +2,7 @@
.PATH: ${.CURDIR}/../../dev/md
KMOD= md
KMOD= g_md
SRCS= md.c opt_md.h opt_geom.h vnode_if.h
.include <bsd.kmod.mk>

View File

@ -65,6 +65,7 @@ struct md_ioctl {
};
#define MD_NAME "md"
#define MD_MODNAME "g_md"
#define MDCTL_NAME "mdctl"
#define MDIOVERSION 0