summaryrefslogtreecommitdiffstats
path: root/sys/dev/vinum/vinumvar.h
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2001-02-20 11:37:04 +0000
committeralfred <alfred@FreeBSD.org>2001-02-20 11:37:04 +0000
commit34c1e918b627c1bbf7db62673e4115a52d254a65 (patch)
treec3303bdecbfa090f88b766e89baf5250eb9451ea /sys/dev/vinum/vinumvar.h
parentd6b473bae18b73b9030163daf134be3e41b6bdda (diff)
downloadFreeBSD-src-34c1e918b627c1bbf7db62673e4115a52d254a65.zip
FreeBSD-src-34c1e918b627c1bbf7db62673e4115a52d254a65.tar.gz
Take a shot at making vinum devfs aware.
Adding make_dev() and destroy_dev() calls in (hopefully) the right places. This is done by calling make_dev() in each object constructor and caching the dev_t's returned from make_dev() in each struct 'subdisk'(sd), 'plex' and 'volume' such that the 'object'_free() functioncs can call destroy dev. This change makes a subset of the old /dev/vinum appear under devfs. Enough nodes appear such that I'm able to mount my striped volume. There may be more work needed to get vinum configuration working properly.
Diffstat (limited to 'sys/dev/vinum/vinumvar.h')
-rw-r--r--sys/dev/vinum/vinumvar.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/vinum/vinumvar.h b/sys/dev/vinum/vinumvar.h
index d662077..9e61128 100644
--- a/sys/dev/vinum/vinumvar.h
+++ b/sys/dev/vinum/vinumvar.h
@@ -37,7 +37,7 @@
* otherwise) arising in any way out of the use of this software, even if
* advised of the possibility of such damage.
*
- * $Id: vinumvar.h,v 1.24 2000/03/01 02:34:57 grog Exp grog $
+ * $Id: vinumvar.h,v 1.36 2001/01/14 06:34:57 grog Exp $
* $FreeBSD$
*/
@@ -216,7 +216,7 @@ struct devcode {
unsigned signbit:1; /* to make 32 bits */
};
-#define VINUM_DIR "/dev/vinum"
+#define VINUM_DIR "vinum"
/*
* These definitions help catch
@@ -451,6 +451,7 @@ struct sd {
int init_blocksize; /* init block size (bytes) */
int init_interval; /* and time to wait between transfers */
char name[MAXSDNAME]; /* name of subdisk */
+ dev_t dev;
};
/*** Plex definitions ***/
@@ -498,6 +499,7 @@ struct plex {
u_int64_t multistripe; /* requests that needed more than one stripe */
int sddowncount; /* number of subdisks down */
char name[MAXPLEXNAME]; /* name of plex */
+ dev_t dev;
};
/*** Volume definitions ***/
@@ -537,6 +539,7 @@ struct volume {
int plex[MAXPLEX]; /* index of plexes */
char name[MAXVOLNAME]; /* name of volume */
struct disklabel label; /* for DIOCGPART */
+ dev_t dev;
};
/*
OpenPOWER on IntegriCloud