BSD 4_1_snap development
[unix-history] / sys / h / filsys.h
CommitLineData
6bafdb92
C
1/* filsys.h 4.3 81/03/03 */
2
3/*
4 * Structure of the super-block
5 */
6struct filsys
7{
8 unsigned short s_isize; /* size in blocks of i-list */
9 daddr_t s_fsize; /* size in blocks of entire volume */
10 short s_nfree; /* number of addresses in s_free */
11 daddr_t s_free[NICFREE]; /* free block list */
12 short s_ninode; /* number of i-nodes in s_inode */
13 ino_t s_inode[NICINOD]; /* free i-node list */
14 char s_flock; /* lock during free list manipulation */
15 char s_ilock; /* lock during i-list manipulation */
16 char s_fmod; /* super block modified flag */
17 char s_ronly; /* mounted read-only flag */
18 time_t s_time; /* last super block update */
19 daddr_t s_tfree; /* total free blocks*/
20 ino_t s_tinode; /* total free inodes */
21 short s_dinfo[2]; /* interleave stuff */
22#define s_m s_dinfo[0]
23#define s_n s_dinfo[1]
24 char s_fsmnt[12]; /* ordinary file mounted on */
25 /* end not maintained */
26 ino_t s_lasti; /* start place for circular search */
27 ino_t s_nbehind; /* est # free inodes before s_lasti */
28};
29
30#ifdef KERNEL
31struct filsys *getfs();
32#endif