Fixed extern declaration from pointer to array
[minix.git] / servers / vfs / vnode.h
blob110d231b0f4a0382e1f8a7c2a2119891e1b7e2cc
3 EXTERN struct vnode {
4 endpoint_t v_fs_e; /* FS process' endpoint number */
5 endpoint_t v_mapfs_e; /* mapped FS process' endpoint number */
6 ino_t v_inode_nr; /* inode number on its (minor) device */
7 ino_t v_mapinode_nr; /* mapped inode number of mapped FS. */
8 mode_t v_mode; /* file type, protection, etc. */
9 uid_t v_uid; /* uid of inode. */
10 gid_t v_gid; /* gid of inode. */
11 off_t v_size; /* current file size in bytes */
12 int v_ref_count; /* # times vnode used; 0 means slot is free */
13 int v_fs_count; /* # reference at the underlying FS */
14 int v_mapfs_count; /* # reference at the underlying mapped FS */
15 #if 0
16 int v_ref_check; /* for consistency checks */
17 #endif
18 char v_pipe; /* set to I_PIPE if pipe */
19 off_t v_pipe_rd_pos;
20 off_t v_pipe_wr_pos;
21 endpoint_t v_bfs_e; /* endpoint number for the FS proces in case
22 of a block special file */
23 dev_t v_dev; /* device number on which the corresponding
24 inode resides */
25 dev_t v_sdev; /* device number for special files */
26 struct vmnt *v_vmnt; /* vmnt object of the partition */
27 } vnode[NR_VNODES];
29 #define NIL_VNODE (struct vnode *) 0 /* indicates absence of vnode slot */
31 /* Field values. */
32 #define NO_PIPE 0 /* i_pipe is NO_PIPE if inode is not a pipe */
33 #define I_PIPE 1 /* i_pipe is I_PIPE if inode is a pipe */