xref: /csrg-svn/sys/dev/vnioctl.h (revision 63145)
141480Smckusick /*
241480Smckusick  * Copyright (c) 1988 University of Utah.
3*63145Sbostic  * Copyright (c) 1990, 1993
4*63145Sbostic  *	The Regents of the University of California.  All rights reserved.
541480Smckusick  *
641480Smckusick  * This code is derived from software contributed to Berkeley by
741480Smckusick  * the Systems Programming Group of the University of Utah Computer
841480Smckusick  * Science Department.
941480Smckusick  *
1041480Smckusick  * %sccs.include.redist.c%
1141480Smckusick  *
1245486Smckusick  * from: Utah $Hdr: fdioctl.h 1.1 90/07/09$
1341480Smckusick  *
14*63145Sbostic  *	@(#)vnioctl.h	8.1 (Berkeley) 06/10/93
1541480Smckusick  */
1641480Smckusick 
1741480Smckusick /*
1841480Smckusick  * Ioctl definitions for file (vnode) disk pseudo-device.
1941480Smckusick  */
2041480Smckusick 
2141480Smckusick #define FDISKFILE	"/etc/fdisks"	/* default config file */
2241480Smckusick 
2349299Shibler struct vn_ioctl {
2449299Shibler 	char	*vn_file;	/* pathname of file to mount */
2549299Shibler 	int	vn_size;	/* (returned) size of disk */
2641480Smckusick };
2741480Smckusick 
2841480Smckusick /*
2949299Shibler  * Before you can use a unit, it must be configured with VNIOCSET.
3041480Smckusick  * The configuration persists across opens and closes of the device;
3149299Shibler  * an VNIOCCLR must be used to reset a configuration.  An attempt to
3249299Shibler  * VNIOCSET an already active unit will return EBUSY.
3341480Smckusick  */
3449299Shibler #define VNIOCSET	_IOWR('F', 0, struct vn_ioctl)	/* enable disk */
3549299Shibler #define VNIOCCLR	_IOW('F', 1, struct vn_ioctl)	/* disable disk */
36