Lines Matching defs:fs

260 struct fs {  struct
261 int32_t fs_firstfield; /* historic filesystem linked list, */ argument
262 int32_t fs_unused_1; /* used for incore super blocks */ argument
263 int32_t fs_sblkno; /* offset of super-block in filesys */ argument
264 int32_t fs_cblkno; /* offset of cyl-block in filesys */ argument
265 int32_t fs_iblkno; /* offset of inode-blocks in filesys */ argument
266 int32_t fs_dblkno; /* offset of first data after cg */ argument
267 int32_t fs_old_cgoffset; /* cylinder group offset in cylinder */ argument
268 int32_t fs_old_cgmask; /* used to calc mod fs_ntrak */ argument
269 int32_t fs_old_time; /* last time written */ argument
270 int32_t fs_old_size; /* number of blocks in fs */ argument
271 int32_t fs_old_dsize; /* number of data blocks in fs */ argument
272 u_int32_t fs_ncg; /* number of cylinder groups */ argument
273 int32_t fs_bsize; /* size of basic blocks in fs */ argument
274 int32_t fs_fsize; /* size of frag blocks in fs */ argument
275 int32_t fs_frag; /* number of frags in a block in fs */ argument
277 int32_t fs_minfree; /* minimum percentage of free blocks */ argument
278 int32_t fs_old_rotdelay; /* num of ms for optimal next block */ argument
279 int32_t fs_old_rps; /* disk revolutions per second */ argument
281 int32_t fs_bmask; /* ``blkoff'' calc of blk offsets */ argument
282 int32_t fs_fmask; /* ``fragoff'' calc of frag offsets */ argument
283 int32_t fs_bshift; /* ``lblkno'' calc of logical blkno */ argument
284 int32_t fs_fshift; /* ``numfrags'' calc number of frags */ argument
286 int32_t fs_maxcontig; /* max number of contiguous blks */ argument
287 int32_t fs_maxbpg; /* max number of blks per cyl group */ argument
289 int32_t fs_fragshift; /* block to frag shift */ argument
290 int32_t fs_fsbtodb; /* fsbtodb and dbtofsb shift constant */ argument
291 int32_t fs_sbsize; /* actual size of super block */ argument
292 int32_t fs_spare1[2]; /* old fs_csmask */ argument
294 int32_t fs_nindir; /* value of NINDIR */ argument
295 u_int32_t fs_inopb; /* value of INOPB */ argument
296 int32_t fs_old_nspf; /* value of NSPF */ argument
298 int32_t fs_optim; /* optimization preference, see below */ argument
299 int32_t fs_old_npsect; /* # sectors/track including spares */ argument
300 int32_t fs_old_interleave; /* hardware sector interleave */ argument
301 int32_t fs_old_trackskew; /* sector 0 skew, per track */ argument
302 int32_t fs_id[2]; /* unique filesystem id */ argument
304 int32_t fs_old_csaddr; /* blk addr of cyl grp summary area */ argument
305 int32_t fs_cssize; /* size of cyl grp summary area */ argument
306 int32_t fs_cgsize; /* cylinder group size */ argument
307 int32_t fs_spare2; /* old fs_ntrak */ argument
308 int32_t fs_old_nsect; /* sectors per track */ argument
309 int32_t fs_old_spc; /* sectors per cylinder */ argument
310 int32_t fs_old_ncyl; /* cylinders in filesystem */ argument
311 int32_t fs_old_cpg; /* cylinders per group */ argument
312 u_int32_t fs_ipg; /* inodes per group */ argument
313 int32_t fs_fpg; /* blocks per group * fs_frag */ argument
315 struct csum fs_old_cstotal; /* cylinder summary information */ argument
317 int8_t fs_fmod; /* super block modified flag */ argument
318 int8_t fs_clean; /* filesystem is clean flag */ argument
319 int8_t fs_ronly; /* mounted read-only flag */ argument
320 int8_t fs_old_flags; /* old FS_ flags */ argument
321 u_char fs_fsmnt[MAXMNTLEN]; /* name mounted on */ argument
322 u_char fs_volname[MAXVOLLEN]; /* volume name */ argument
323 u_int64_t fs_swuid; /* system-wide uid */ argument
324 int32_t fs_pad; /* due to alignment of fs_swuid */ argument
326 int32_t fs_cgrotor; /* last cg searched */ argument
327 void *fs_ocsp[NOCSPTRS]; /* padding; was list of fs_cs buffers */ argument
328 u_int8_t *fs_contigdirs; /* (u) # of contig. allocated dirs */ argument
329 struct csum *fs_csp; /* (u) cg summary info buffer */ argument
330 int32_t *fs_maxcluster; /* (u) max cluster in each cyl group */ argument
331 u_int *fs_active; /* (u) used by snapshots to track fs */ argument
332 int32_t fs_old_cpc; /* cyl per cycle in postbl */ argument
333 int32_t fs_maxbsize; /* maximum blocking factor permitted */ argument
334 int64_t fs_unrefs; /* number of unreferenced inodes */ argument
335 int64_t fs_providersize; /* size of underlying GEOM provider */ argument
336 int64_t fs_metaspace; /* size of area reserved for metadata */ argument
337 int64_t fs_sparecon64[14]; /* old rotation block list head */ argument
338 int64_t fs_sblockloc; /* byte offset of standard superblock */ argument
339 struct csum_total fs_cstotal; /* (u) cylinder summary information */ argument
340 ufs_time_t fs_time; /* last time written */ argument
341 int64_t fs_size; /* number of blocks in fs */ argument
342 int64_t fs_dsize; /* number of data blocks in fs */ argument
343 ufs2_daddr_t fs_csaddr; /* blk addr of cyl grp summary area */ argument
344 int64_t fs_pendingblocks; /* (u) blocks being freed */ argument
345 u_int32_t fs_pendinginodes; /* (u) inodes being freed */ argument
346 uint32_t fs_snapinum[FSMAXSNAP];/* list of snapshot inode numbers */ argument
347 u_int32_t fs_avgfilesize; /* expected average file size */ argument
348 u_int32_t fs_avgfpdir; /* expected # of files per directory */ argument
349 int32_t fs_save_cgsize; /* save real cg size to use fs_bsize */ argument
350 ufs_time_t fs_mtime; /* Last mount or fsck time. */ argument
351 int32_t fs_sujfree; /* SUJ free list */ argument
352 int32_t fs_sparecon32[23]; /* reserved for future constants */ argument
353 int32_t fs_flags; /* see FS_ flags below */ argument
354 int32_t fs_contigsumsize; /* size of cluster summary array */ argument
355 int32_t fs_maxsymlinklen; /* max length of an internal symlink */ argument
356 int32_t fs_old_inodefmt; /* format of on-disk inodes */ argument
357 u_int64_t fs_maxfilesize; /* maximum representable file size */ argument
358 int64_t fs_qbmask; /* ~fs_bmask for use with 64-bit size */ argument
359 int64_t fs_qfmask; /* ~fs_fmask for use with 64-bit size */ argument
360 int32_t fs_state; /* validate fs_clean field */ argument
361 int32_t fs_old_postblformat; /* format of positional layout tables */ argument
362 int32_t fs_old_nrpos; /* number of rotational positions */ argument
363 int32_t fs_spare5[2]; /* old fs_postbloff */ argument
365 int32_t fs_magic; /* magic number */ argument
432 #define ACTIVECGNUM(fs, cg) ((fs)->fs_active[(cg) / (NBBY * sizeof(int))]) argument
434 #define ACTIVESET(fs, cg) do { \ argument
438 #define ACTIVECLEAR(fs, cg) do { \ argument
449 #define CGSIZE(fs) \ argument
467 #define fs_cs(fs, indx) fs_csp[indx] argument
521 #define fsbtodb(fs, b) ((daddr_t)(b) << (fs)->fs_fsbtodb) argument
522 #define dbtofsb(fs, b) ((b) >> (fs)->fs_fsbtodb) argument
528 #define cgbase(fs, c) (((ufs2_daddr_t)(fs)->fs_fpg) * (c)) argument
529 #define cgdata(fs, c) (cgdmin(fs, c) + (fs)->fs_metaspace) /* data zone */ argument
530 #define cgmeta(fs, c) (cgdmin(fs, c)) /* meta data */ argument
531 #define cgdmin(fs, c) (cgstart(fs, c) + (fs)->fs_dblkno) /* 1st data */ argument
532 #define cgimin(fs, c) (cgstart(fs, c) + (fs)->fs_iblkno) /* inode blk */ argument
533 #define cgsblock(fs, c) (cgstart(fs, c) + (fs)->fs_sblkno) /* super blk */ argument
534 #define cgtod(fs, c) (cgstart(fs, c) + (fs)->fs_cblkno) /* cg block */ argument
535 #define cgstart(fs, c) \ argument
545 #define ino_to_cg(fs, x) (((ino_t)(x)) / (fs)->fs_ipg) argument
546 #define ino_to_fsba(fs, x) \ argument
549 #define ino_to_fsbo(fs, x) (((ino_t)(x)) % INOPB(fs)) argument
555 #define dtog(fs, d) ((d) / (fs)->fs_fpg) argument
556 #define dtogd(fs, d) ((d) % (fs)->fs_fpg) argument
562 #define blkmap(fs, map, loc) \ argument
570 #define blkoff(fs, loc) /* calculates (loc % fs->fs_bsize) */ \ argument
572 #define fragoff(fs, loc) /* calculates (loc % fs->fs_fsize) */ \ argument
574 #define lfragtosize(fs, frag) /* calculates ((off_t)frag * fs->fs_fsize) */ \ argument
576 #define lblktosize(fs, blk) /* calculates ((off_t)blk * fs->fs_bsize) */ \ argument
579 #define smalllblktosize(fs, blk) /* calculates (blk * fs->fs_bsize) */ \ argument
581 #define lblkno(fs, loc) /* calculates (loc / fs->fs_bsize) */ \ argument
583 #define numfrags(fs, loc) /* calculates (loc / fs->fs_fsize) */ \ argument
585 #define blkroundup(fs, size) /* calculates roundup(size, fs->fs_bsize) */ \ argument
587 #define fragroundup(fs, size) /* calculates roundup(size, fs->fs_fsize) */ \ argument
589 #define fragstoblks(fs, frags) /* calculates (frags / fs->fs_frag) */ \ argument
591 #define blkstofrags(fs, blks) /* calculates (blks * fs->fs_frag) */ \ argument
593 #define fragnum(fs, fsb) /* calculates (fsb % fs->fs_frag) */ \ argument
595 #define blknum(fs, fsb) /* calculates rounddown(fsb, fs->fs_frag) */ \ argument
602 #define freespace(fs, percentreserved) \ argument
610 #define blksize(fs, ip, lbn) \ argument
614 #define sblksize(fs, size, lbn) \ argument
622 #define NINDIR(fs) ((fs)->fs_nindir) argument
651 lbn_offset(struct fs *fs, int level) in lbn_offset()
663 #define INOPB(fs) ((fs)->fs_inopb) argument
664 #define INOPF(fs) ((fs)->fs_inopb >> (fs)->fs_fragshift) argument