*#ident "$Revision: 1.17 $"
*
* XLV - XLV Logical volume pseudo-device driver
*
*FLAG	PREFIX	SOFT	#DEV	DEPENDENCIES
sbc	xlv	192	-	bpqueue,sgi
                                xlv_tab_subvol_size(){false}

$$$
#include "sys/xlv_base.h"
#include "sys/xlv_lock.h"

int xlvmajor = ##E;	/* external major number */

/*
 * We dynamically allocate xlv_tab and xlv_tab_vol.
 * However, the locks are statically allocated so that we can
 * do dynamic change operations. 
 */

#ifdef MINIROOT
/*
 * Set a higher absolute maximum lock count for the miniroot since the
 * user cannot simply lboot a new miniroot with a large XLV lock count.
 * However the maximum cannot be set arbitrarily high since each lock
 * consumes 128 bytes of memory.
 */
#define XLV_MAXVOLS 128
#else
#define XLV_MAXVOLS 40
#endif

#define XLV_MAXSUBVOLS XLV_MAXVOLS*XLV_SUBVOLS_PER_VOL

int xlv_maxlocks = XLV_MAXSUBVOLS;
xlv_lock_t xlv_io_lock[XLV_MAXSUBVOLS];

int xlv_stats_enabled = 0;		/* statistics collection indicator */
