Fix vinums cdevsw{} to initialize d_version.

The nonstandard formatting made my mega-patch scripts miss it.

Retire the static major number while we're here anyway.

Reported by:	Niels Chr. Bank-Pedersen <ncbp@bank-pedersen.dk>
This commit is contained in:
Poul-Henning Kamp 2004-02-23 08:55:13 +00:00
parent 652d04726d
commit 6fe9c1609f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=126157
3 changed files with 10 additions and 14 deletions

View File

@ -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)

View File

@ -54,8 +54,8 @@ extern struct mc malloced[];
#endif
#include <dev/vinum/request.h>
struct cdevsw vinum_cdevsw =
{
struct cdevsw vinum_cdevsw = {
.d_version = D_VERSION,
.d_open = vinumopen,
.d_close = vinumclose,
.d_read = physread,
@ -63,8 +63,7 @@ struct cdevsw vinum_cdevsw =
.d_ioctl = vinumioctl,
.d_strategy = vinumstrategy,
.d_name = "vinum",
.d_maj = VINUM_CDEV_MAJOR,
.d_flags = D_DISK
.d_flags = D_DISK | D_NEEDGIANT
};
/* Called by main() during pseudo-device attachment. */

View File

@ -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 */
/*