| /netbsd-src/sbin/fsck_ext2fs/ |
| H A D | setup.c | 166 cg * proto.e2fs.e2fs_bpg + in setup() 167 proto.e2fs.e2fs_first_dblock); in setup() 185 printf("state = %d\n", sblock.e2fs.e2fs_state); in setup() 186 if (sblock.e2fs.e2fs_state == E2FS_ISCLEAN) { in setup() 195 maxfsblock = sblock.e2fs.e2fs_bcount; in setup() 196 maxino = sblock.e2fs_ncg * sblock.e2fs.e2fs_ipg; in setup() 207 (sblock.e2fs.e2fs_rbcount > sblock.e2fs.e2fs_bcount)) { in setup() 209 sblock.e2fs.e2fs_rbcount); in setup() 211 sblock.e2fs.e2fs_rbcount = in setup() 212 sblock.e2fs.e2fs_bcount * MINFREE / 100; in setup() [all …]
|
| H A D | pass5.c | 112 nifree = fs->e2fs.e2fs_ipg; in pass5() 136 j = fs->e2fs.e2fs_ipg * c + 1; in pass5() 138 for (i = 0; i < fs->e2fs.e2fs_ipg; j++, i++) { in pass5() 144 if (j > fs->e2fs.e2fs_icount) { in pass5() 172 for (i = fs->e2fs.e2fs_ipg / NBBY; i < (uint32_t)fs->e2fs_bsize; i++) in pass5() 175 dbase = c * sblock.e2fs.e2fs_bpg + in pass5() 176 sblock.e2fs.e2fs_first_dblock; in pass5() 177 dmax = (c+1) * sblock.e2fs.e2fs_bpg + in pass5() 178 sblock.e2fs.e2fs_first_dblock; in pass5() 183 if (testbmap(d) || d >= sblock.e2fs.e2fs_bcount) { in pass5() [all …]
|
| H A D | inode.c | 91 (((x)-1) % (fs)->e2fs.e2fs_ipg)/(fs)->e2fs_ipb) 105 if (sblock.e2fs.e2fs_rev < E2FS_REV1) { in setlarge() 109 if (!(sblock.e2fs.e2fs_features_rocompat & EXT2F_ROCOMPAT_LARGEFILE)) { in setlarge() 114 sblock.e2fs.e2fs_features_rocompat |= EXT2F_ROCOMPAT_LARGEFILE; in setlarge() 123 if (sblock.e2fs.e2fs_rev < E2FS_REV1) { in sethuge() 127 if (!(sblock.e2fs.e2fs_features_rocompat & EXT2F_ROCOMPAT_HUGE_FILE)) { in sethuge() 132 sblock.e2fs.e2fs_features_rocompat |= EXT2F_ROCOMPAT_HUGE_FILE; in sethuge() 348 if (blk < sblock.e2fs.e2fs_bpg * c + overh + in chkrange() 349 sblock.e2fs.e2fs_first_dblock) { in chkrange() 350 if ((blk + cnt) > sblock.e2fs.e2fs_bpg * c + overh + in chkrange() [all …]
|
| H A D | main.c | 257 if (sblock.e2fs.e2fs_rev > E2FS_REV0) { in checkfilesys() 259 sblock.e2fs.e2fs_fsmnt); in checkfilesys() 308 n_bfree = sblock.e2fs.e2fs_fbcount; in checkfilesys() 314 (n_files -= maxino - 9 - sblock.e2fs.e2fs_ficount)) in checkfilesys() 319 n_blks += sblock.e2fs.e2fs_first_dblock; in checkfilesys() 343 sblock.e2fs.e2fs_wtime = t; in checkfilesys() 344 sblock.e2fs.e2fs_lastfsck = t; in checkfilesys()
|
| H A D | pass2.c | 247 if (sblock.e2fs.e2fs_rev > E2FS_REV0 && in pass2check() 248 (sblock.e2fs.e2fs_features_incompat & EXT2F_INCOMPAT_FTYPE) in pass2check() 260 if (sblock.e2fs.e2fs_rev > E2FS_REV0 && in pass2check() 261 (sblock.e2fs.e2fs_features_incompat & EXT2F_INCOMPAT_FTYPE)) in pass2check() 295 if (sblock.e2fs.e2fs_rev > E2FS_REV0 && in pass2check() 296 (sblock.e2fs.e2fs_features_incompat & EXT2F_INCOMPAT_FTYPE)) in pass2check() 318 if (sblock.e2fs.e2fs_rev > E2FS_REV0 && in pass2check() 319 (sblock.e2fs.e2fs_features_incompat & EXT2F_INCOMPAT_FTYPE) in pass2check() 435 if (sblock.e2fs.e2fs_rev > E2FS_REV0 && in pass2check() 436 (sblock.e2fs.e2fs_features_incompat & in pass2check()
|
| H A D | pass1.c | 100 dbase = c * sblock.e2fs.e2fs_bpg + in pass1() 101 sblock.e2fs.e2fs_first_dblock; in pass1() 116 if (sblock.e2fs.e2fs_rev == E2FS_REV0 || in pass1() 117 (sblock.e2fs.e2fs_features_rocompat & in pass1() 144 j < sblock.e2fs.e2fs_ipg && inumber <= sblock.e2fs.e2fs_icount; in pass1() 166 (sblock.e2fs.e2fs_features_compat & EXT2F_COMPAT_RESIZE) != 0)) in checkinode()
|
| H A D | dir.c | 274 if (sblock.e2fs.e2fs_rev < E2FS_REV1 || in dircheck() 275 (sblock.e2fs.e2fs_features_incompat & EXT2F_INCOMPAT_FTYPE) == 0) in dircheck() 356 if (sblock.e2fs.e2fs_rev > E2FS_REV0 && in mkentry() 357 (sblock.e2fs.e2fs_features_incompat & EXT2F_INCOMPAT_FTYPE)) in mkentry() 387 if (sblock.e2fs.e2fs_rev > E2FS_REV0 && in chgino() 388 (sblock.e2fs.e2fs_features_incompat & EXT2F_INCOMPAT_FTYPE)) in chgino() 626 if (sblock.e2fs.e2fs_rev > E2FS_REV0 && in allocdir() 627 (sblock.e2fs.e2fs_features_incompat & EXT2F_INCOMPAT_FTYPE)) in allocdir() 632 if (sblock.e2fs.e2fs_rev > E2FS_REV0 && in allocdir() 633 (sblock.e2fs.e2fs_features_incompat & EXT2F_INCOMPAT_FTYPE)) in allocdir()
|
| H A D | pass1b.c | 92 for (i = 0; i < sblock.e2fs.e2fs_ipg; i++, inumber++) { in pass1b()
|
| H A D | utilities.c | 287 if (markclean && (sblock.e2fs.e2fs_state & E2FS_ISCLEAN) == 0) { in ckfini() 296 sblock.e2fs.e2fs_state = E2FS_ISCLEAN; in ckfini()
|
| /netbsd-src/sbin/newfs_ext2fs/ |
| H A D | mke2fs.c | 159 ((fs)->e2fs.e2fs_first_dblock + (fs)->e2fs.e2fs_bpg * (c)) 246 sblock.e2fs.e2fs_log_bsize = ilog2(bsize) - LOG_MINBSIZE; in mke2fs() 248 sblock.e2fs.e2fs_fsize = ilog2(fsize) - LOG_MINBSIZE; in mke2fs() 251 sblock.e2fs_bshift = sblock.e2fs.e2fs_log_bsize + LOG_MINBSIZE; in mke2fs() 265 sblock.e2fs.e2fs_first_dblock = (sblock.e2fs_bsize > BBSIZE) ? 0 : 1; in mke2fs() 267 sblock.e2fs.e2fs_first_dblock + in mke2fs() 294 ncg = howmany(bcount - sblock.e2fs.e2fs_first_dblock, blocks_per_cg); in mke2fs() 315 blocks_lastcg = bcount - sblock.e2fs.e2fs_first_dblock - in mke2fs() 339 sblock.e2fs in mke2fs() [all...] |
| /netbsd-src/sys/ufs/ext2fs/ |
| H A D | ext2fs_alloc.c | 130 if (fs->e2fs.e2fs_fbcount == 0) in ext2fs_alloc() 136 if (bpref >= fs->e2fs.e2fs_bcount) in ext2fs_alloc() 181 if (fs->e2fs.e2fs_ficount == 0) in ext2fs_valloc() 188 ipref = cg * fs->e2fs.e2fs_ipg + 1; in ext2fs_valloc() 214 avgifree = fs->e2fs.e2fs_ficount / fs->e2fs_ncg; in ext2fs_dirpref() 279 return fs->e2fs.e2fs_bpg * cg + fs->e2fs.e2fs_first_dblock + 1; in ext2fs_blkpref() 391 end = howmany(fs->e2fs.e2fs_fpg, NBBY) - start; in ext2fs_alloccg() 423 fs->e2fs.e2fs_fbcount--; in ext2fs_alloccg() 427 return cg * fs->e2fs.e2fs_fpg + fs->e2fs.e2fs_first_dblock + bno; in ext2fs_alloccg() 468 KASSERT(fs2h16(fs->e2fs_gd[cg].ext2bgd_nifree) == fs->e2fs.e2fs_ipg); in ext2fs_nodealloccg() [all …]
|
| H A D | ext2fs_vfsops.c | 222 if (ip->i_e2fs->e2fs.e2fs_rev > E2FS_REV0) { in ext2fs_set_inode_guid() 303 if (fs->e2fs_ronly == 0 && fs->e2fs.e2fs_rev > E2FS_REV0) { in ext2fs_sb_setmountinfo() 304 (void)strlcpy(fs->e2fs.e2fs_fsmnt, mp->mnt_stat.f_mntonname, in ext2fs_sb_setmountinfo() 305 sizeof(fs->e2fs.e2fs_fsmnt)); in ext2fs_sb_setmountinfo() 307 fs->e2fs.e2fs_mtime = time_second; in ext2fs_sb_setmountinfo() 308 fs->e2fs.e2fs_mnt_count++; in ext2fs_sb_setmountinfo() 348 setrootfstime((time_t)fs->e2fs.e2fs_wtime); in ext2fs_mountroot() 502 (fs->e2fs.e2fs_state & E2FS_ERRORS) == 0) { in ext2fs_mount() 503 fs->e2fs.e2fs_state = E2FS_ISCLEAN; in ext2fs_mount() 522 if (fs->e2fs in ext2fs_mount() [all...] |
| H A D | ext2fs.h | 241 struct ext2fs e2fs; member 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 …]
|
| H A D | ext2fs_dinode.h | 209 #define EXT2_DINODE_SIZE(fs) ((fs)->e2fs.e2fs_rev > E2FS_REV0 ? \ 210 (fs)->e2fs.e2fs_inode_size : \
|
| H A D | ext2fs_extents.c | 146 ecp = &ip->inode_ext.e2fs.i_ext_cache; in ext4_ext_in_cache() 170 ecp = &ip->inode_ext.e2fs.i_ext_cache; in ext4_ext_put_cache()
|
| H A D | ext2fs_htree.c | 399 fs = &(dp->i_e2fs->e2fs); in ext2fs_htree_create_index() 504 fs = &(m_fs->e2fs); in ext2fs_htree_add_entry() 726 fs = &(ip->i_e2fs->e2fs); in ext2fs_htree_find_leaf()
|
| H A D | ext2fs_inode.c | 118 if (fs->e2fs.e2fs_rev <= E2FS_REV0) { in ext2fs_setsize() 124 fs->e2fs.e2fs_features_rocompat |= in ext2fs_setsize()
|
| H A D | ext2fs_vnops.c | 487 if (ip->i_e2fs->e2fs.e2fs_rev > E2FS_REV0) { in ext2fs_chown() 665 dp->i_e2fs->e2fs.e2fs_features_rocompat |= EXT2F_ROCOMPAT_DIR_NLINK; in ext2fs_mkdir()
|
| H A D | ext2fs_lookup.c | 768 * "vfs.e2fs.dirchk" to be true. in ext2fs_search_dirblock() 853 VTOI(dp)->i_e2fs->e2fs.e2fs_icount) in ext2fs_dirbadentry()
|
| /netbsd-src/usr.sbin/installboot/ |
| H A D | ext2fs.c | 133 e2fs_sbload((void *)sbbuf, &fs->e2fs); in ext2fs_read_sblock() 135 if (fs->e2fs.e2fs_magic != E2FS_MAGIC) in ext2fs_read_sblock() 138 if (fs->e2fs.e2fs_rev > E2FS_REV1 || in ext2fs_read_sblock() 139 (fs->e2fs.e2fs_rev == E2FS_REV1 && in ext2fs_read_sblock() 140 (fs->e2fs.e2fs_first_ino != EXT2_FIRSTINO || in ext2fs_read_sblock() 141 fs->e2fs.e2fs_inode_size != EXT2_DINODE_SIZE || in ext2fs_read_sblock() 142 (fs->e2fs.e2fs_features_incompat & ~EXT2F_INCOMPAT_SUPP) != 0))) in ext2fs_read_sblock() 146 howmany(fs->e2fs.e2fs_bcount - fs->e2fs.e2fs_first_dblock, in ext2fs_read_sblock() 147 fs->e2fs.e2fs_bpg); in ext2fs_read_sblock() 149 fs->e2fs_fsbtodb = fs->e2fs.e2fs_log_bsize + 1; in ext2fs_read_sblock() [all …]
|
| /netbsd-src/sys/lib/libsa/ |
| H A D | ext2fs.c | 438 e2fs_sbload((void *)sbbuf, &fs->e2fs); in read_sblock() 441 howmany(fs->e2fs.e2fs_bcount - fs->e2fs.e2fs_first_dblock, in read_sblock() 442 fs->e2fs.e2fs_bpg); in read_sblock() 444 fs->e2fs_fsbtodb = fs->e2fs.e2fs_log_bsize + 1; in read_sblock() 445 fs->e2fs_bsize = MINBSIZE << fs->e2fs.e2fs_log_bsize; in read_sblock() 446 fs->e2fs_bshift = LOG_MINBSIZE + fs->e2fs.e2fs_log_bsize; in read_sblock() 452 fs->e2fs_itpg = fs->e2fs.e2fs_ipg / fs->e2fs_ipb; in read_sblock() 469 FSBTODB(fs, fs->e2fs.e2fs_first_dblock + in read_gdblock() 990 printf("fs->e2fs.e2fs_bcount = %u\n", fs->e2fs.e2fs_bcount); in dump_sblock() 991 printf("fs->e2fs.e2fs_first_dblock = %u\n", fs->e2fs.e2fs_first_dblock); in dump_sblock() [all …]
|
| /netbsd-src/sys/ufs/ufs/ |
| H A D | inode.h | 109 struct m_ext2fs *e2fs; /* EXT2FS */ member 113 #define i_e2fs inode_u.e2fs 133 struct ext2fs_inode_ext e2fs; member 139 #define i_e2fs_last_lblk inode_ext.e2fs.ext2fs_last_lblk 140 #define i_e2fs_last_blk inode_ext.e2fs.ext2fs_last_blk
|
| H A D | ufsmount.h | 84 struct m_ext2fs *e2fs; /* EXT2FS */ member 89 #define um_e2fs ufsmount_u.e2fs 90 #define um_e2fsb ufsmount_u.e2fs->s_es
|
| /netbsd-src/external/bsd/file/dist/magic/magdir/ |
| H A D | filesystems | 1332 # 0=stage2 1=ffs 2=e2fs 3=fat 4=minix 5=reiserfs 1349 # 0=stage2 1=ffs 2=e2fs 3=fat 4=minix 5=reiserfs 6=vstafs 7=jfs 8=xfs 9=iso9660 a=ufs2
|