summaryrefslogtreecommitdiff
path: root/sys/dev/md
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>1999-12-01 10:20:21 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>1999-12-01 10:20:21 +0000
commit66c161915bfaa34f2f316ccdbf065f97dbe99869 (patch)
tree4a3705e815d7e2490560fb7c5edce599b59491dc /sys/dev/md
parenta793b9c097060a1e759dbe96efaade631edefdab (diff)
downloadsrc-test2-66c161915bfaa34f2f316ccdbf065f97dbe99869.tar.gz
src-test2-66c161915bfaa34f2f316ccdbf065f97dbe99869.zip
Notes
Diffstat (limited to 'sys/dev/md')
-rw-r--r--sys/dev/md/md.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/md/md.c b/sys/dev/md/md.c
index 1b9ba0f82473..66ede3b8ed24 100644
--- a/sys/dev/md/md.c
+++ b/sys/dev/md/md.c
@@ -342,7 +342,6 @@ mdcreate(struct cdevsw *devsw)
MALLOC(sc, struct md_s *,sizeof(*sc), M_MD, M_WAITOK);
bzero(sc, sizeof(*sc));
sc->unit = mdunits++;
- sc->type = MD_PRELOAD;
bufq_init(&sc->buf_queue);
devstat_add_entry(&sc->stats, "md", sc->unit, DEV_BSIZE,
DEVSTAT_NO_ORDERED_TAGS,
@@ -359,6 +358,7 @@ mdcreate_preload(u_char *image, unsigned length)
struct md_s *sc;
sc = mdcreate(&md_cdevsw);
+ sc->type = MD_PRELOAD;
sc->nsect = length / DEV_BSIZE;
sc->pl_ptr = image;
sc->pl_len = length;
@@ -373,6 +373,7 @@ mdcreate_malloc(void)
struct md_s *sc;
sc = mdcreate(&md_cdevsw);
+ sc->type = MD_MALLOC;
sc->nsect = MDNSECT; /* for now */
MALLOC(sc->secp, u_char **, sizeof(u_char *), M_MD, M_WAITOK);
@@ -410,6 +411,7 @@ md_drvinit(void *unused)
mdunits, name, len, ptr);
mdcreate_preload(ptr, len);
}
+ printf("md%d: Malloc disk\n", mdunits);
mdcreate_malloc();
}