Lines Matching defs:fs

146 struct fs  struct
148 int xxx1; /* struct fs *fs_link; */ argument
149 int xxx2; /* struct fs *fs_rlink; */ argument
150 mach_daddr_t fs_sblkno; /* addr of super-block in filesys */ argument
151 mach_daddr_t fs_cblkno; /* offset of cyl-block in filesys */ argument
152 mach_daddr_t fs_iblkno; /* offset of inode-blocks in filesys */ argument
153 mach_daddr_t fs_dblkno; /* offset of first data after cg */ argument
154 int fs_cgoffset; /* cylinder group offset in cylinder */ argument
155 int fs_cgmask; /* used to calc mod fs_ntrak */ argument
156 mach_time_t fs_time; /* last time written */ argument
157 int fs_size; /* number of blocks in fs */ argument
158 int fs_dsize; /* number of data blocks in fs */ argument
159 int fs_ncg; /* number of cylinder groups */ argument
160 int fs_bsize; /* size of basic blocks in fs */ argument
161 int fs_fsize; /* size of frag blocks in fs */ argument
162 int fs_frag; /* number of frags in a block in fs */ argument
164 int fs_minfree; /* minimum percentage of free blocks */ argument
165 int fs_rotdelay; /* num of ms for optimal next block */ argument
166 int fs_rps; /* disk revolutions per second */ argument
168 int fs_bmask; /* ``blkoff'' calc of blk offsets */ argument
169 int fs_fmask; /* ``fragoff'' calc of frag offsets */ argument
170 int fs_bshift; /* ``lblkno'' calc of logical blkno */ argument
171 int fs_fshift; /* ``numfrags'' calc number of frags */ argument
173 int fs_maxcontig; /* max number of contiguous blks */ argument
174 int fs_maxbpg; /* max number of blks per cyl group */ argument
176 int fs_fragshift; /* block to frag shift */ argument
177 int fs_fsbtodb; /* fsbtodb and dbtofsb shift constant */ argument
178 int fs_sbsize; /* actual size of super block */ argument
179 int fs_csmask; /* csum block offset */ argument
180 int fs_csshift; /* csum block number */ argument
181 int fs_nindir; /* value of NINDIR */ argument
182 int fs_inopb; /* value of INOPB */ argument
183 int fs_nspf; /* value of NSPF */ argument
185 int fs_optim; /* optimization preference, see below */ argument
187 int fs_npsect; /* # sectors/track including spares */ argument
188 int fs_interleave; /* hardware sector interleave */ argument
189 int fs_trackskew; /* sector 0 skew, per track */ argument
190 int fs_headswitch; /* head switch time, usec */ argument
191 int fs_trkseek; /* track-to-track seek, usec */ argument
193 mach_daddr_t fs_csaddr; /* blk addr of cyl grp summary area */ argument
194 int fs_cssize; /* size of cyl grp summary area */ argument
195 int fs_cgsize; /* cylinder group size */ argument
197 int fs_ntrak; /* tracks per cylinder */ argument
198 int fs_nsect; /* sectors per track */ argument
199 int fs_spc; /* sectors per cylinder */ argument
201 int fs_ncyl; /* cylinders in file system */ argument
203 int fs_cpg; /* cylinders per group */ argument
204 int fs_ipg; /* inodes per group */ argument
205 int fs_fpg; /* blocks per group * fs_frag */ argument
207 struct csum fs_cstotal; /* cylinder summary information */ argument
209 char fs_fmod; /* super block modified flag */ argument
210 char fs_clean; /* file system is clean flag */ argument
211 char fs_ronly; /* mounted read-only flag */ argument
212 char fs_flags; /* currently unused flag */ argument
213 char fs_fsmnt[MAXMNTLEN]; /* name mounted on */ argument
215 int fs_cgrotor; /* last cg searched */ argument
217 int was_fs_csp[MAXCSBUFS]; argument
219 struct csum *fs_csp[MAXCSBUFS]; /* list of fs_cs info buffers */ argument
221 int fs_cpc; /* cyl per cycle in postbl */ argument
222 short fs_opostbl[16][8]; /* old rotation block list head */ argument
223 long fs_sparecon[50]; /* reserved for future constants */ argument
224 long fs_contigsumsize; /* size of cluster summary array */ argument
225 long fs_maxsymlinklen; /* max length of an internal symlink */ argument
226 long fs_inodefmt; /* format of on-disk inodes */ argument
227 quad fs_maxfilesize; /* maximum representable file size */ argument
228 quad fs_qbmask; /* ~fs_bmask - for use with quad size */ argument
229 quad fs_qfmask; /* ~fs_fmask - for use with quad size */ argument
230 long fs_state; /* validate fs_clean field */ argument
231 int fs_postblformat; /* format of positional layout tables */ argument
232 int fs_nrpos; /* number of rotaional positions */ argument
233 int fs_postbloff; /* (short) rotation block list head */ argument
234 int fs_rotbloff; /* (char) blocks for each rotation */ argument
235 int fs_magic; /* magic number */ argument
236 unsigned char fs_space[1]; /* list of blocks for each rotation */ argument
253 #define fs_postbl(fs, cylno) \ argument
257 #define fs_rotbl(fs) \ argument
267 #define fs_cs(fs, indx) \ argument
304 #define cg_blks(fs, cgp, cylno) \ argument
349 #define fsbtodb(fs, b) ((b) << (fs)->fs_fsbtodb) argument
350 #define dbtofsb(fs, b) ((b) >> (fs)->fs_fsbtodb) argument
356 #define cgbase(fs, c) ((mach_daddr_t)((fs)->fs_fpg * (c))) argument
357 #define cgstart(fs, c) \ argument
359 #define cgsblock(fs, c) (cgstart(fs, c) + (fs)->fs_sblkno) /* super blk */ argument
360 #define cgtod(fs, c) (cgstart(fs, c) + (fs)->fs_cblkno) /* cg block */ argument
361 #define cgimin(fs, c) (cgstart(fs, c) + (fs)->fs_iblkno) /* inode blk */ argument
362 #define cgdmin(fs, c) (cgstart(fs, c) + (fs)->fs_dblkno) /* 1st data */ argument
370 #define itoo(fs, x) ((x) % INOPB(fs)) argument
371 #define itog(fs, x) ((x) / (fs)->fs_ipg) argument
372 #define itod(fs, x) \ argument
380 #define dtog(fs, d) ((d) / (fs)->fs_fpg) argument
381 #define dtogd(fs, d) ((d) % (fs)->fs_fpg) argument
387 #define blkmap(fs, map, loc) \ argument
389 #define cbtocylno(fs, bno) \ argument
391 #define cbtorpos(fs, bno) \ argument
401 #define blkoff(fs, loc) /* calculates (loc % fs->fs_bsize) */ \ argument
403 #define fragoff(fs, loc) /* calculates (loc % fs->fs_fsize) */ \ argument
405 #define lblkno(fs, loc) /* calculates (loc / fs->fs_bsize) */ \ argument
407 #define numfrags(fs, loc) /* calculates (loc / fs->fs_fsize) */ \ argument
409 #define blkroundup(fs, size) /* calculates roundup(size, fs->fs_bsize) */ \ argument
411 #define fragroundup(fs, size) /* calculates roundup(size, fs->fs_fsize) */ \ argument
413 #define fragstoblks(fs, frags) /* calculates (frags / fs->fs_frag) */ \ argument
415 #define blkstofrags(fs, blks) /* calculates (blks * fs->fs_frag) */ \ argument
417 #define fragnum(fs, fsb) /* calculates (fsb % fs->fs_frag) */ \ argument
419 #define blknum(fs, fsb) /* calculates rounddown(fsb, fs->fs_frag) */ \ argument
426 #define freespace(fs, percentreserved) \ argument
433 #define blksize(fs, ip, lbn) \ argument
437 #define dblksize(fs, dip, lbn) \ argument
445 #define NSPB(fs) ((fs)->fs_nspf << (fs)->fs_fragshift) argument
446 #define NSPF(fs) ((fs)->fs_nspf) argument
451 #define INOPB(fs) ((fs)->fs_inopb) argument
452 #define INOPF(fs) ((fs)->fs_inopb >> (fs)->fs_fragshift) argument
457 #define NINDIR(fs) ((fs)->fs_nindir) argument