Commit | Line | Data |
---|---|---|
60f56dfc KM |
1 | /* |
2 | * Copyright (c) 1988 University of Utah. | |
3 | * Copyright (c) 1990 The Regents of the University of California. | |
4 | * All rights reserved. | |
5 | * | |
6 | * This code is derived from software contributed to Berkeley by | |
7 | * the Systems Programming Group of the University of Utah Computer | |
8 | * Science Department. | |
9 | * | |
10 | * %sccs.include.redist.c% | |
11 | * | |
f7c89fbb | 12 | * from: Utah $Hdr: fdioctl.h 1.1 90/07/09$ |
60f56dfc | 13 | * |
0c17d899 | 14 | * @(#)vnioctl.h 7.3 (Berkeley) %G% |
60f56dfc KM |
15 | */ |
16 | ||
17 | /* | |
18 | * Ioctl definitions for file (vnode) disk pseudo-device. | |
19 | */ | |
20 | ||
21 | #define FDISKFILE "/etc/fdisks" /* default config file */ | |
22 | ||
0c17d899 MH |
23 | struct vn_ioctl { |
24 | char *vn_file; /* pathname of file to mount */ | |
25 | int vn_size; /* (returned) size of disk */ | |
60f56dfc KM |
26 | }; |
27 | ||
28 | /* | |
0c17d899 | 29 | * Before you can use a unit, it must be configured with VNIOCSET. |
60f56dfc | 30 | * The configuration persists across opens and closes of the device; |
0c17d899 MH |
31 | * an VNIOCCLR must be used to reset a configuration. An attempt to |
32 | * VNIOCSET an already active unit will return EBUSY. | |
60f56dfc | 33 | */ |
0c17d899 MH |
34 | #define VNIOCSET _IOWR('F', 0, struct vn_ioctl) /* enable disk */ |
35 | #define VNIOCCLR _IOW('F', 1, struct vn_ioctl) /* disable disk */ |