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:
parent
157b106eae
commit
a246f097d6
@ -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)) {
|
||||
|
@ -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>
|
||||
|
@ -65,6 +65,7 @@ struct md_ioctl {
|
||||
};
|
||||
|
||||
#define MD_NAME "md"
|
||||
#define MD_MODNAME "g_md"
|
||||
#define MDCTL_NAME "mdctl"
|
||||
#define MDIOVERSION 0
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user