Lines Matching +full:super +full:- +full:set

1 /*-
7 /*-
8 * SPDX-License-Identifier: BSD-3-Clause
46 * A file system is described by its super-block, which in turn
47 * describes the cylinder groups. The super-block is critical
50 * super-block data does not change, so the copies need not be
53 * The first boot and super blocks are given in absolute disk addresses.
54 * The byte-offset forms are preferred, as they don't imply a sector size.
64 * the super block for this name.
70 * in each cylinder group. Normally this is set by the initial
73 * XXX:FS_MAXCONTIG is set to 16 to conserve space. Here we set
102 #define fsbtodb(fs, b) ((daddr_t)(b) << (fs)->e2fs_fsbtodb)
103 #define dbtofsb(fs, b) ((b) >> (fs)->e2fs_fsbtodb)
106 #define ino_to_cg(fs, x) (((x) - 1) / (fs->e2fs_ipg))
110 (e2fs_gd_get_i_tables(&(fs)->e2fs_gd[ino_to_cg((fs), (x))]) + \
111 (((x) - 1) % (fs)->e2fs_ipg) / (fs)->e2fs_ipb)
114 #define ino_to_fsbo(fs, x) ((x-1) % (fs->e2fs_ipb))
120 #define dtog(fs, d) (((d) - le32toh(fs->e2fs->e2fs_first_dblock)) / \
122 #define dtogd(fs, d) (((d) - le32toh(fs->e2fs->e2fs_first_dblock)) % \
130 #define blkoff(fs, loc) /* calculates (loc % fs->fs_bsize) */ \
131 ((loc) & (fs)->e2fs_qbmask)
133 #define lblktosize(fs, blk) /* calculates (blk * fs->fs_bsize) */ \
134 ((blk) << (fs->e2fs_bshift))
136 #define lblkno(fs, loc) /* calculates (loc / fs->fs_bsize) */ \
137 ((loc) >> (fs->e2fs_bshift))
139 /* no fragments -> logical block number equal # of frags */
140 #define numfrags(fs, loc) /* calculates (loc / fs->fs_fsize) */ \
141 ((loc) >> (fs->e2fs_bshift))
143 #define fragroundup(fs, size) /* calculates roundup(size, fs->fs_fsize) */ \
144 roundup(size, fs->e2fs_fsize)
145 /* was (((size) + (fs)->fs_qfmask) & (fs)->fs_fmask) */
151 #define blksize(fs, ip, lbn) ((fs)->e2fs_fsize)
156 #define INOPB(fs) (fs->e2fs_ipb)