*
* vd -- striped virtual disk driver
*

%DRIVER

Type:		block character		# driver type:  block, character, stream
Prefix:		vd			# prefix added to functions
Funcs:		open close read write ioctl strategy print init
Major:		27			# major device number(s)
Multiproc:	open close read write ioctl strategy print
Options:	# mirrorable

%PARAM

NVBUF		1024			# number of virtual buffer headers
MAX_VIRT_DISKS	16			# max number of stripes in system

%CONFIG					# code added to conf.c for this driver

#ifdef VD_0

#	ifndef SYS_BUF_H
#	include "sys/buf.h"
#	endif

#	ifndef SYS_SYNCH_H
#	include "sys/synch.h"
#	endif

#	ifndef SYS_VD_H
#	include "sys/vd.h"
#	endif

vd_t		virt_slices[MAX_VIRT_DISKS];
uint		max_virt_slices = MAX_VIRT_DISKS;
buf_t		vdbufhdrs[NVBUF];
uint		num_vd_bufs = NVBUF;

#endif /* VD_0 */
