Lines Matching defs:fs

244 struct fs {  struct
245 grub_int32_t fs_firstfield; /* historic filesystem linked list, */ argument
246 grub_int32_t fs_unused_1; /* used for incore super blocks */ argument
247 grub_int32_t fs_sblkno; /* offset of super-block in filesys */ argument
248 grub_int32_t fs_cblkno; /* offset of cyl-block in filesys */ argument
249 grub_int32_t fs_iblkno; /* offset of inode-blocks in filesys */ argument
250 grub_int32_t fs_dblkno; /* offset of first data after cg */ argument
251 grub_int32_t fs_old_cgoffset; /* cylinder group offset in cylinder */ argument
252 grub_int32_t fs_old_cgmask; /* used to calc mod fs_ntrak */ argument
253 grub_int32_t fs_old_time; /* last time written */ argument
254 grub_int32_t fs_old_size; /* number of blocks in fs */ argument
255 grub_int32_t fs_old_dsize; /* number of data blocks in fs */ argument
256 grub_int32_t fs_ncg; /* number of cylinder groups */ argument
257 grub_int32_t fs_bsize; /* size of basic blocks in fs */ argument
258 grub_int32_t fs_fsize; /* size of frag blocks in fs */ argument
259 grub_int32_t fs_frag; /* number of frags in a block in fs */ argument
261 grub_int32_t fs_minfree; /* minimum percentage of free blocks */ argument
262 grub_int32_t fs_old_rotdelay; /* num of ms for optimal next block */ argument
263 grub_int32_t fs_old_rps; /* disk revolutions per second */ argument
265 grub_int32_t fs_bmask; /* ``blkoff'' calc of blk offsets */ argument
266 grub_int32_t fs_fmask; /* ``fragoff'' calc of frag offsets */ argument
267 grub_int32_t fs_bshift; /* ``lblkno'' calc of logical blkno */ argument
268 grub_int32_t fs_fshift; /* ``numfrags'' calc number of frags */ argument
270 grub_int32_t fs_maxcontig; /* max number of contiguous blks */ argument
271 grub_int32_t fs_maxbpg; /* max number of blks per cyl group */ argument
273 grub_int32_t fs_fragshift; /* block to frag shift */ argument
274 grub_int32_t fs_fsbtodb; /* fsbtodb and dbtofsb shift constant */ argument
275 grub_int32_t fs_sbsize; /* actual size of super block */ argument
276 grub_int32_t fs_spare1[2]; /* old fs_csmask */ argument
278 grub_int32_t fs_nindir; /* value of NINDIR */ argument
279 grub_int32_t fs_inopb; /* value of INOPB */ argument
280 grub_int32_t fs_old_nspf; /* value of NSPF */ argument
282 grub_int32_t fs_optim; /* optimization preference, see below */ argument
283 grub_int32_t fs_old_npsect; /* # sectors/track including spares */ argument
284 grub_int32_t fs_old_interleave; /* hardware sector interleave */ argument
285 grub_int32_t fs_old_trackskew; /* sector 0 skew, per track */ argument
286 grub_int32_t fs_id[2]; /* unique filesystem id */ argument
288 grub_int32_t fs_old_csaddr; /* blk addr of cyl grp summary area */ argument
289 grub_int32_t fs_cssize; /* size of cyl grp summary area */ argument
290 grub_int32_t fs_cgsize; /* cylinder group size */ argument
291 grub_int32_t fs_spare2; /* old fs_ntrak */ argument
292 grub_int32_t fs_old_nsect; /* sectors per track */ argument
293 grub_int32_t fs_old_spc; /* sectors per cylinder */ argument
294 grub_int32_t fs_old_ncyl; /* cylinders in filesystem */ argument
295 grub_int32_t fs_old_cpg; /* cylinders per group */ argument
296 grub_int32_t fs_ipg; /* inodes per group */ argument
297 grub_int32_t fs_fpg; /* blocks per group * fs_frag */ argument
299 struct csum fs_old_cstotal; /* cylinder summary information */ argument
301 grub_int8_t fs_fmod; /* super block modified flag */ argument
302 grub_int8_t fs_clean; /* filesystem is clean flag */ argument
303 grub_int8_t fs_ronly; /* mounted read-only flag */ argument
304 grub_int8_t fs_old_flags; /* old FS_ flags */ argument
305 grub_u_char fs_fsmnt[MAXMNTLEN]; /* name mounted on */ argument
307 grub_int32_t fs_cgrotor; /* last cg searched */ argument
308 void *fs_ocsp[NOCSPTRS]; /* padding; was list of fs_cs buffers */ argument
309 grub_u_int8_t *fs_contigdirs; /* # of contiguously allocated dirs */ argument
310 struct csum *fs_csp; /* cg summary info buffer for fs_cs */ argument
311 grub_int32_t *fs_maxcluster; /* max cluster in each cyl group */ argument
312 grub_u_int *fs_active; /* used by snapshots to track fs */ argument
313 grub_int32_t fs_old_cpc; /* cyl per cycle in postbl */ argument
314 grub_int32_t fs_maxbsize; /* maximum blocking factor permitted */ argument
315 grub_int64_t fs_sparecon64[17]; /* old rotation block list head */ argument
316 grub_int64_t fs_sblockloc; /* byte offset of standard superblock */ argument
317 struct csum_total fs_cstotal; /* cylinder summary information */ argument
318 ufs_time_t fs_time; /* last time written */ argument
319 grub_int64_t fs_size; /* number of blocks in fs */ argument
320 grub_int64_t fs_dsize; /* number of data blocks in fs */ argument
321 ufs2_daddr_t fs_csaddr; /* blk addr of cyl grp summary area */ argument
322 grub_int64_t fs_pendingblocks; /* blocks in process of being freed */ argument
323 grub_int32_t fs_pendinginodes; /* inodes in process of being freed */ argument
324 grub_int32_t fs_snapinum[FSMAXSNAP];/* list of snapshot inode numbers */ argument
325 grub_int32_t fs_avgfilesize; /* expected average file size */ argument
326 grub_int32_t fs_avgfpdir; /* expected # of files per directory */ argument
327 grub_int32_t fs_save_cgsize; /* save real cg size to use fs_bsize */ argument
328 grub_int32_t fs_sparecon32[26]; /* reserved for future constants */ argument
329 grub_int32_t fs_flags; /* see FS_ flags below */ argument
330 grub_int32_t fs_contigsumsize; /* size of cluster summary array */ argument
331 grub_int32_t fs_maxsymlinklen; /* max length of an internal symlink */ argument
332 grub_int32_t fs_old_inodefmt; /* format of on-disk inodes */ argument
333 grub_u_int64_t fs_maxfilesize; /* maximum representable file size */ argument
334 grub_int64_t fs_qbmask; /* ~fs_bmask for use with 64-bit size */ argument
335 grub_int64_t fs_qfmask; /* ~fs_fmask for use with 64-bit size */ argument
336 grub_int32_t fs_state; /* validate fs_clean field */ argument
337 grub_int32_t fs_old_postblformat; /* format of positional layout tables */ argument
338 grub_int32_t fs_old_nrpos; /* number of rotational positions */ argument
339 grub_int32_t fs_spare5[2]; /* old fs_postbloff */ argument
341 grub_int32_t fs_magic; /* magic number */ argument
354 #define fsbtodb(fs, b) ((b) << (fs)->fs_fsbtodb) argument
355 #define dbtofsb(fs, b) ((b) >> (fs)->fs_fsbtodb) argument
361 #define cgbase(fs, c) ((ufs2_daddr_t)((fs)->fs_fpg * (c))) argument
362 #define cgimin(fs, c) (cgstart(fs, c) + (fs)->fs_iblkno) /* inode blk */ argument
363 #define cgstart(fs, c) \ argument
373 #define ino_to_cg(fs, x) ((x) / (fs)->fs_ipg) argument
374 #define ino_to_fsba(fs, x) \ argument
377 #define ino_to_fsbo(fs, x) ((x) % INOPB(fs)) argument
384 #define blkoff(fs, loc) /* calculates (loc % fs->fs_bsize) */ \ argument
388 #define smalllblktosize(fs, blk) /* calculates (blk * fs->fs_bsize) */ \ argument
392 #define lblkno(fs, loc) /* calculates (loc / fs->fs_bsize) */ \ argument
395 #define fragroundup(fs, size) /* calculates roundup(size, fs->fs_fsize) */ \ argument
398 #define fragstoblks(fs, frags) /* calculates (frags / fs->fs_frag) */ \ argument
400 #define blkstofrags(fs, blks) /* calculates (blks * fs->fs_frag) */ \ argument
402 #define fragnum(fs, fsb) /* calculates (fsb % fs->fs_frag) */ \ argument
404 #define blknum(fs, fsb) /* calculates rounddown(fsb, fs->fs_frag) */ \ argument
410 #define blksize(fs, ip, lbn) \ argument
414 #define sblksize(fs, size, lbn) \ argument
423 #define INOPB(fs) ((fs)->fs_inopb) argument
424 #define INOPF(fs) ((fs)->fs_inopb >> (fs)->fs_fragshift) argument
429 #define NINDIR(fs) ((fs)->fs_nindir) argument