summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/conf/majors1
-rw-r--r--sys/dev/vinum/vinum.c21
-rw-r--r--sys/dev/vinum/vinumvar.h2
3 files changed, 10 insertions, 14 deletions
diff --git a/sys/conf/majors b/sys/conf/majors
index 9fdcc55..2fd4abd 100644
--- a/sys/conf/majors
+++ b/sys/conf/majors
@@ -55,7 +55,6 @@
86 alog Industrial Computer Source AIO8-P driver (deprecated)
87 wfd ATAPI floppy client of "wd"
90 wst ATAPI tape client of "wd"
-91 *vinum Volume manager
92 *bktr Bt848 video capture driver (hasty@star-gate.com)
93 *coda CODA filesystem.
96 altq alternate queueing (including cbq, red, wfq)
diff --git a/sys/dev/vinum/vinum.c b/sys/dev/vinum/vinum.c
index 513c0d9..8e1bf36 100644
--- a/sys/dev/vinum/vinum.c
+++ b/sys/dev/vinum/vinum.c
@@ -54,17 +54,16 @@ extern struct mc malloced[];
#endif
#include <dev/vinum/request.h>
-struct cdevsw vinum_cdevsw =
-{
- .d_open = vinumopen,
- .d_close = vinumclose,
- .d_read = physread,
- .d_write = physwrite,
- .d_ioctl = vinumioctl,
- .d_strategy = vinumstrategy,
- .d_name = "vinum",
- .d_maj = VINUM_CDEV_MAJOR,
- .d_flags = D_DISK
+struct cdevsw vinum_cdevsw = {
+ .d_version = D_VERSION,
+ .d_open = vinumopen,
+ .d_close = vinumclose,
+ .d_read = physread,
+ .d_write = physwrite,
+ .d_ioctl = vinumioctl,
+ .d_strategy = vinumstrategy,
+ .d_name = "vinum",
+ .d_flags = D_DISK | D_NEEDGIANT
};
/* Called by main() during pseudo-device attachment. */
diff --git a/sys/dev/vinum/vinumvar.h b/sys/dev/vinum/vinumvar.h
index 6130391..807439c 100644
--- a/sys/dev/vinum/vinumvar.h
+++ b/sys/dev/vinum/vinumvar.h
@@ -67,8 +67,6 @@ enum constants {
MAXCONFIGLINE = 1024, /* maximum size of a single config line */
MINVINUMSLICE = 1048576, /* minimum size of a slice */
- VINUM_CDEV_MAJOR = 91, /* major number for character device */
-
ROUND_ROBIN_READPOL = -1, /* round robin read policy */
/*
OpenPOWER on IntegriCloud