HomeSort by: relevance | last modified time | path
    Searched refs:e2fs (Results 1 - 23 of 23) sorted by relevancy

  /src/sbin/fsck_ext2fs/
setup.c 166 cg * proto.e2fs.e2fs_bpg +
167 proto.e2fs.e2fs_first_dblock);
185 printf("state = %d\n", sblock.e2fs.e2fs_state);
186 if (sblock.e2fs.e2fs_state == E2FS_ISCLEAN) {
195 maxfsblock = sblock.e2fs.e2fs_bcount;
196 maxino = sblock.e2fs_ncg * sblock.e2fs.e2fs_ipg;
206 if (/* (sblock.e2fs.e2fs_rbcount < 0) || */
207 (sblock.e2fs.e2fs_rbcount > sblock.e2fs.e2fs_bcount)) {
209 sblock.e2fs.e2fs_rbcount)
    [all...]
pass5.c 112 nifree = fs->e2fs.e2fs_ipg;
136 j = fs->e2fs.e2fs_ipg * c + 1;
138 for (i = 0; i < fs->e2fs.e2fs_ipg; j++, i++) {
144 if (j > fs->e2fs.e2fs_icount) {
172 for (i = fs->e2fs.e2fs_ipg / NBBY; i < (uint32_t)fs->e2fs_bsize; i++)
175 dbase = c * sblock.e2fs.e2fs_bpg +
176 sblock.e2fs.e2fs_first_dblock;
177 dmax = (c+1) * sblock.e2fs.e2fs_bpg +
178 sblock.e2fs.e2fs_first_dblock;
183 if (testbmap(d) || d >= sblock.e2fs.e2fs_bcount)
    [all...]
inode.c 91 (((x)-1) % (fs)->e2fs.e2fs_ipg)/(fs)->e2fs_ipb)
105 if (sblock.e2fs.e2fs_rev < E2FS_REV1) {
109 if (!(sblock.e2fs.e2fs_features_rocompat & EXT2F_ROCOMPAT_LARGEFILE)) {
114 sblock.e2fs.e2fs_features_rocompat |= EXT2F_ROCOMPAT_LARGEFILE;
123 if (sblock.e2fs.e2fs_rev < E2FS_REV1) {
127 if (!(sblock.e2fs.e2fs_features_rocompat & EXT2F_ROCOMPAT_HUGE_FILE)) {
132 sblock.e2fs.e2fs_features_rocompat |= EXT2F_ROCOMPAT_HUGE_FILE;
348 if (blk < sblock.e2fs.e2fs_bpg * c + overh +
349 sblock.e2fs.e2fs_first_dblock) {
350 if ((blk + cnt) > sblock.e2fs.e2fs_bpg * c + overh
    [all...]
main.c 257 if (sblock.e2fs.e2fs_rev > E2FS_REV0) {
259 sblock.e2fs.e2fs_fsmnt);
308 n_bfree = sblock.e2fs.e2fs_fbcount;
314 (n_files -= maxino - 9 - sblock.e2fs.e2fs_ficount))
319 n_blks += sblock.e2fs.e2fs_first_dblock;
343 sblock.e2fs.e2fs_wtime = t;
344 sblock.e2fs.e2fs_lastfsck = t;
pass2.c 247 if (sblock.e2fs.e2fs_rev > E2FS_REV0 &&
248 (sblock.e2fs.e2fs_features_incompat & EXT2F_INCOMPAT_FTYPE)
260 if (sblock.e2fs.e2fs_rev > E2FS_REV0 &&
261 (sblock.e2fs.e2fs_features_incompat & EXT2F_INCOMPAT_FTYPE))
295 if (sblock.e2fs.e2fs_rev > E2FS_REV0 &&
296 (sblock.e2fs.e2fs_features_incompat & EXT2F_INCOMPAT_FTYPE))
318 if (sblock.e2fs.e2fs_rev > E2FS_REV0 &&
319 (sblock.e2fs.e2fs_features_incompat & EXT2F_INCOMPAT_FTYPE)
435 if (sblock.e2fs.e2fs_rev > E2FS_REV0 &&
436 (sblock.e2fs.e2fs_features_incompat
    [all...]
pass1.c 100 dbase = c * sblock.e2fs.e2fs_bpg +
101 sblock.e2fs.e2fs_first_dblock;
116 if (sblock.e2fs.e2fs_rev == E2FS_REV0 ||
117 (sblock.e2fs.e2fs_features_rocompat &
144 j < sblock.e2fs.e2fs_ipg && inumber <= sblock.e2fs.e2fs_icount;
166 (sblock.e2fs.e2fs_features_compat & EXT2F_COMPAT_RESIZE) != 0))
pass1b.c 92 for (i = 0; i < sblock.e2fs.e2fs_ipg; i++, inumber++) {
dir.c 274 if (sblock.e2fs.e2fs_rev < E2FS_REV1 ||
275 (sblock.e2fs.e2fs_features_incompat & EXT2F_INCOMPAT_FTYPE) == 0)
356 if (sblock.e2fs.e2fs_rev > E2FS_REV0 &&
357 (sblock.e2fs.e2fs_features_incompat & EXT2F_INCOMPAT_FTYPE))
387 if (sblock.e2fs.e2fs_rev > E2FS_REV0 &&
388 (sblock.e2fs.e2fs_features_incompat & EXT2F_INCOMPAT_FTYPE))
626 if (sblock.e2fs.e2fs_rev > E2FS_REV0 &&
627 (sblock.e2fs.e2fs_features_incompat & EXT2F_INCOMPAT_FTYPE))
632 if (sblock.e2fs.e2fs_rev > E2FS_REV0 &&
633 (sblock.e2fs.e2fs_features_incompat & EXT2F_INCOMPAT_FTYPE)
    [all...]
utilities.c 287 if (markclean && (sblock.e2fs.e2fs_state & E2FS_ISCLEAN) == 0) {
296 sblock.e2fs.e2fs_state = E2FS_ISCLEAN;
  /src/sbin/newfs_ext2fs/
mke2fs.c 159 ((fs)->e2fs.e2fs_first_dblock + (fs)->e2fs.e2fs_bpg * (c))
246 sblock.e2fs.e2fs_log_bsize = ilog2(bsize) - LOG_MINBSIZE;
248 sblock.e2fs.e2fs_fsize = ilog2(fsize) - LOG_MINBSIZE;
251 sblock.e2fs_bshift = sblock.e2fs.e2fs_log_bsize + LOG_MINBSIZE;
265 sblock.e2fs.e2fs_first_dblock = (sblock.e2fs_bsize > BBSIZE) ? 0 : 1;
267 sblock.e2fs.e2fs_first_dblock +
294 ncg = howmany(bcount - sblock.e2fs.e2fs_first_dblock, blocks_per_cg);
315 blocks_lastcg = bcount - sblock.e2fs.e2fs_first_dblock -
339 sblock.e2fs.e2fs_bcount = bcount
    [all...]
  /src/usr.sbin/installboot/
ext2fs.c 133 e2fs_sbload((void *)sbbuf, &fs->e2fs);
135 if (fs->e2fs.e2fs_magic != E2FS_MAGIC)
138 if (fs->e2fs.e2fs_rev > E2FS_REV1 ||
139 (fs->e2fs.e2fs_rev == E2FS_REV1 &&
140 (fs->e2fs.e2fs_first_ino != EXT2_FIRSTINO ||
141 fs->e2fs.e2fs_inode_size != EXT2_DINODE_SIZE ||
142 (fs->e2fs.e2fs_features_incompat & ~EXT2F_INCOMPAT_SUPP) != 0)))
146 howmany(fs->e2fs.e2fs_bcount - fs->e2fs.e2fs_first_dblock,
147 fs->e2fs.e2fs_bpg)
    [all...]
  /src/sys/ufs/ext2fs/
ext2fs.h 241 struct ext2fs e2fs; member in struct:m_ext2fs
381 ((fs)->e2fs.e2fs_rev >= E2FS_REV1 && \
382 ((fs)->e2fs.e2fs_features_compat & (feature)) != 0)
385 ((fs)->e2fs.e2fs_rev >= E2FS_REV1 && \
386 ((fs)->e2fs.e2fs_features_rocompat & (feature)) != 0)
389 ((fs)->e2fs.e2fs_rev >= E2FS_REV1 && \
390 ((fs)->e2fs.e2fs_features_incompat & (feature)) != 0)
525 #define ino_to_cg(fs, x) (((x) - 1) / (fs)->e2fs.e2fs_ipg)
530 (((x) - 1) % (fs)->e2fs.e2fs_ipg) / (fs)->e2fs_ipb)
537 #define dtog(fs, d) (((d) - (fs)->e2fs.e2fs_first_dblock) / (fs)->e2fs.e2fs_fpg
    [all...]
ext2fs_vfsops.c 222 if (ip->i_e2fs->e2fs.e2fs_rev > E2FS_REV0) {
299 if (fs->e2fs_ronly == 0 && fs->e2fs.e2fs_rev > E2FS_REV0) {
300 (void)strlcpy(fs->e2fs.e2fs_fsmnt, mp->mnt_stat.f_mntonname,
301 sizeof(fs->e2fs.e2fs_fsmnt));
303 fs->e2fs.e2fs_mtime = time_second;
304 fs->e2fs.e2fs_mnt_count++;
344 setrootfstime((time_t)fs->e2fs.e2fs_wtime);
498 (fs->e2fs.e2fs_state & E2FS_ERRORS) == 0) {
499 fs->e2fs.e2fs_state = E2FS_ISCLEAN;
518 if (fs->e2fs.e2fs_state == E2FS_ISCLEAN
    [all...]
ext2fs_alloc.c 130 if (fs->e2fs.e2fs_fbcount == 0)
136 if (bpref >= fs->e2fs.e2fs_bcount)
181 if (fs->e2fs.e2fs_ficount == 0)
188 ipref = cg * fs->e2fs.e2fs_ipg + 1;
214 avgifree = fs->e2fs.e2fs_ficount / fs->e2fs_ncg;
279 return fs->e2fs.e2fs_bpg * cg + fs->e2fs.e2fs_first_dblock + 1;
391 end = howmany(fs->e2fs.e2fs_fpg, NBBY) - start;
423 fs->e2fs.e2fs_fbcount--;
427 return cg * fs->e2fs.e2fs_fpg + fs->e2fs.e2fs_first_dblock + bno
    [all...]
ext2fs_dinode.h 209 #define EXT2_DINODE_SIZE(fs) ((fs)->e2fs.e2fs_rev > E2FS_REV0 ? \
210 (fs)->e2fs.e2fs_inode_size : \
274 /* e2fs needs byte swapping on big-endian systems */
ext2fs_extents.c 146 ecp = &ip->inode_ext.e2fs.i_ext_cache;
170 ecp = &ip->inode_ext.e2fs.i_ext_cache;
ext2fs_inode.c 118 if (fs->e2fs.e2fs_rev <= E2FS_REV0) {
124 fs->e2fs.e2fs_features_rocompat |=
ext2fs_htree.c 399 fs = &(dp->i_e2fs->e2fs);
504 fs = &(m_fs->e2fs);
726 fs = &(ip->i_e2fs->e2fs);
ext2fs_vnops.c 487 if (ip->i_e2fs->e2fs.e2fs_rev > E2FS_REV0) {
665 dp->i_e2fs->e2fs.e2fs_features_rocompat |= EXT2F_ROCOMPAT_DIR_NLINK;
ext2fs_lookup.c 768 * "vfs.e2fs.dirchk" to be true.
853 VTOI(dp)->i_e2fs->e2fs.e2fs_icount)
  /src/sys/lib/libsa/
ext2fs.c 438 e2fs_sbload((void *)sbbuf, &fs->e2fs);
441 howmany(fs->e2fs.e2fs_bcount - fs->e2fs.e2fs_first_dblock,
442 fs->e2fs.e2fs_bpg);
444 fs->e2fs_fsbtodb = fs->e2fs.e2fs_log_bsize + 1;
445 fs->e2fs_bsize = MINBSIZE << fs->e2fs.e2fs_log_bsize;
446 fs->e2fs_bshift = LOG_MINBSIZE + fs->e2fs.e2fs_log_bsize;
452 fs->e2fs_itpg = fs->e2fs.e2fs_ipg / fs->e2fs_ipb;
469 FSBTODB(fs, fs->e2fs.e2fs_first_dblock +
990 printf("fs->e2fs.e2fs_bcount = %u\n", fs->e2fs.e2fs_bcount)
    [all...]
  /src/sys/ufs/ufs/
inode.h 109 struct m_ext2fs *e2fs; /* EXT2FS */ member in union:inode::__anon6267e6fa010a
113 #define i_e2fs inode_u.e2fs
133 struct ext2fs_inode_ext e2fs; member in union:inode::__anon6267e6fa020a
139 #define i_e2fs_last_lblk inode_ext.e2fs.ext2fs_last_lblk
140 #define i_e2fs_last_blk inode_ext.e2fs.ext2fs_last_blk
ufsmount.h 84 struct m_ext2fs *e2fs; /* EXT2FS */ member in union:ufsmount::__anon2a7b98ac010a
89 #define um_e2fs ufsmount_u.e2fs
90 #define um_e2fsb ufsmount_u.e2fs->s_es

Completed in 29 milliseconds