Lines Matching full:of
2 .\" The Regents of the University of California. All rights reserved.
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
10 .\" notice, this list of conditions and the following disclaimer in the
12 .\" 3. Neither the name of the University nor the names of its contributors
18 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 .Nd format of file system volume
52 which are used to create and manage the underlying format of
55 The block size and number of blocks which
56 comprise a file system are parameters of the file system.
69 that is of size
81 int32_t fs_sblkno; /* offset of super-block in filesys */
82 int32_t fs_cblkno; /* offset of cyl-block in filesys */
83 int32_t fs_iblkno; /* offset of inode-blocks in filesys */
84 int32_t fs_dblkno; /* offset of first data after cg */
88 int32_t fs_old_size; /* number of blocks in fs */
89 int32_t fs_old_dsize; /* number of data blocks in fs */
90 int32_t fs_ncg; /* number of cylinder groups */
91 int32_t fs_bsize; /* size of basic blocks in fs */
92 int32_t fs_fsize; /* size of frag blocks in fs */
93 int32_t fs_frag; /* number of frags in a block in fs */
95 int32_t fs_minfree; /* minimum percentage of free blocks */
96 int32_t fs_old_rotdelay; /* num of ms for optimal next block */
99 int32_t fs_bmask; /* ``blkoff'' calc of blk offsets */
100 int32_t fs_fmask; /* ``fragoff'' calc of frag offsets */
101 int32_t fs_bshift; /* ``lblkno'' calc of logical blkno */
102 int32_t fs_fshift; /* ``numfrags'' calc number of frags */
104 int32_t fs_maxcontig; /* max number of contiguous blks */
105 int32_t fs_maxbpg; /* max number of blks per cyl group */
109 int32_t fs_sbsize; /* actual size of super block */
112 int32_t fs_nindir; /* value of NINDIR */
113 int32_t fs_inopb; /* value of INOPB */
114 int32_t fs_old_nspf; /* value of NSPF */
121 /* sizes determined by number of cylinder groups and their sizes */
122 int32_t fs_old_csaddr; /* blk addr of cyl grp summary area */
123 int32_t fs_cssize; /* size of cyl grp summary area */
142 int32_t fs_pad; /* due to alignment of fs_swuid */
145 void *fs_ocsp[NOCSPTRS]; /* padding; was list of fs_cs buffers */
146 uint8_t *fs_contigdirs; /* # of contiguously allocated dirs */
152 int64_t fs_unrefs; /* number of unreferenced inodes */
154 int64_t fs_sblockloc; /* byte offset of standard superblock */
157 int64_t fs_size; /* number of blocks in fs */
158 int64_t fs_dsize; /* number of data blocks in fs */
159 ufs2_daddr_t fs_csaddr; /* blk addr of cyl grp summary area */
160 int64_t fs_pendingblocks; /* blocks in process of being freed */
161 int32_t fs_pendinginodes; /* inodes in process of being freed */
162 int32_t fs_snapinum[FSMAXSNAP]; /* list of snapshot inode numbers */
164 int32_t fs_avgfpdir; /* expected # of files per directory */
168 int32_t fs_contigsumsize; /* size of cluster summary array */
169 int32_t fs_maxsymlinklen; /* max length of an internal symlink */
170 int32_t fs_old_inodefmt; /* format of on-disk inodes */
175 int32_t fs_old_postblformat; /* format of positional layout tables */
176 int32_t fs_old_nrpos; /* number of rotational positions */
198 Each disk drive contains some number of file systems.
199 A file system consists of a number of cylinder groups.
212 Addresses stored in inodes are capable of addressing fragments
214 File system blocks of at most size
217 be optionally broken into 2, 4, or 8 pieces, each of which is
220 or some multiple of
225 Large files consist of exclusively large data blocks.
227 undue wasted disk space, the last data block of a small file is
228 allocated as only as many fragments of a large block as are
231 to such a fragment, which is a piece of a single large block that
233 The size of such a fragment is determinable from
241 The root inode is the root of the file system.
250 element gives the minimum acceptable percentage of file system
257 may be set to 0 if no reserve of free blocks is deemed necessary,
260 value of
265 overall disk utilization at a loading of 90% comes with a
266 fragmentation of 8, thus the default fragment size is an eighth
274 If the value of fs_minfree (see above) is less than 8%,
276 running out of full sized blocks.
277 If the value of minfree is greater than or equal to 8%,
282 Each cylinder keeps track of the availability of blocks at different
285 With the default of 8 distinguished
286 rotational positions, the resolution of the
291 gives the minimum number of milliseconds to initiate
299 Each file system has a statically allocated number of inodes.
302 bytes of disk space.
310 it is possible to create files of size
311 2^32 with only two levels of indirection.
324 defines the amount of space allocated in
326 The limit on the amount of summary information per file system
330 maximum of two million cylinders.
342 must be a power of two in order for
349 The size of the rotational layout tables
350 is limited by the fact that the super-block is of size
352 The size of these tables is
355 size of the file system.
356 The size of the tables is
357 increased when sector sizes are not powers of two,
358 as this increases the number of cylinders
361 The size of the rotational layout
362 tables is derived from the number of bytes remaining in
365 The number of blocks of data per cylinder group
374 The inode is the focus of all file activity in the
385 The format of an external attribute is defined by the extattr structure:
388 uint32_t ea_length; /* length of this attribute */
389 uint8_t ea_namespace; /* name space of this attribute */
390 uint8_t ea_contentpadlen; /* bytes of padding at end of attribute */
391 uint8_t ea_namelength; /* length of attribute name */
408 Returns the size of the extended attribute content referenced by