/openbsd-current/sbin/fsck_ext2fs/ |
H A D | setup.c | 135 cg * proto.e2fs.e2fs_bpg + proto.e2fs.e2fs_first_dblock); 153 printf("state = %d\n", sblock.e2fs.e2fs_state); 154 if (sblock.e2fs.e2fs_state == E2FS_ISCLEAN) { 163 maxfsblock = sblock.e2fs.e2fs_bcount; 164 maxino = sblock.e2fs_ncg * sblock.e2fs.e2fs_ipg; 174 if (/* (sblock.e2fs.e2fs_rbcount < 0) || */ 175 (sblock.e2fs.e2fs_rbcount > sblock.e2fs.e2fs_bcount)) { 177 sblock.e2fs [all...] |
H A D | pass5.c | 80 nifree = fs->e2fs.e2fs_ipg; 104 j = fs->e2fs.e2fs_ipg * c + 1; 106 for (i = 0; i < fs->e2fs.e2fs_ipg; j++, i++) { 112 if (j > fs->e2fs.e2fs_icount) { 140 for (i = fs->e2fs.e2fs_ipg / NBBY; i < fs->e2fs_bsize; i++) 143 dbase = c * sblock.e2fs.e2fs_bpg + 144 sblock.e2fs.e2fs_first_dblock; 145 dmax = (c+1) * sblock.e2fs.e2fs_bpg + 146 sblock.e2fs.e2fs_first_dblock; 151 if (testbmap(d) || d >= sblock.e2fs [all...] |
H A D | inode.c | 61 (((x)-1) % (fs)->e2fs.e2fs_ipg)/(fs)->e2fs_ipb) 71 if (sblock.e2fs.e2fs_rev < E2FS_REV1) { 75 if (!(sblock.e2fs.e2fs_features_rocompat & EXT2F_ROCOMPAT_LARGE_FILE)) { 80 sblock.e2fs.e2fs_features_rocompat |= EXT2F_ROCOMPAT_LARGE_FILE; 294 if (blk < sblock.e2fs.e2fs_bpg * c + overh + 295 sblock.e2fs.e2fs_first_dblock) { 296 if ((blk + cnt) > sblock.e2fs.e2fs_bpg * c + overh + 297 sblock.e2fs.e2fs_first_dblock) { 300 blk, sblock.e2fs.e2fs_bpg * c + overh + 301 sblock.e2fs [all...] |
H A D | main.c | 216 if (sblock.e2fs.e2fs_rev > E2FS_REV0) { 218 sblock.e2fs.e2fs_fsmnt); 267 n_bfree = sblock.e2fs.e2fs_fbcount; 273 (n_files -= maxino - 9 - sblock.e2fs.e2fs_ficount)) 278 n_blks += sblock.e2fs.e2fs_first_dblock; 302 sblock.e2fs.e2fs_wtime = t; 303 sblock.e2fs.e2fs_lastfsck = t;
|
H A D | pass2.c | 216 if (sblock.e2fs.e2fs_rev > E2FS_REV0 && 217 (sblock.e2fs.e2fs_features_incompat & EXT2F_INCOMPAT_FTYPE) 229 if (sblock.e2fs.e2fs_rev > E2FS_REV0 && 230 (sblock.e2fs.e2fs_features_incompat & EXT2F_INCOMPAT_FTYPE)) 264 if (sblock.e2fs.e2fs_rev > E2FS_REV0 && 265 (sblock.e2fs.e2fs_features_incompat & EXT2F_INCOMPAT_FTYPE)) 287 if (sblock.e2fs.e2fs_rev > E2FS_REV0 && 288 (sblock.e2fs.e2fs_features_incompat & EXT2F_INCOMPAT_FTYPE) 403 if (sblock.e2fs.e2fs_rev > E2FS_REV0 && 404 (sblock.e2fs [all...] |
H A D | pass1.c | 67 dbase = c * sblock.e2fs.e2fs_bpg + 68 sblock.e2fs.e2fs_first_dblock; 83 if (sblock.e2fs.e2fs_rev == E2FS_REV0 || 84 (sblock.e2fs.e2fs_features_rocompat & 111 i < sblock.e2fs.e2fs_ipg && inumber <= sblock.e2fs.e2fs_icount;
|
H A D | pass1b.c | 59 for (i = 0; i < sblock.e2fs.e2fs_ipg; i++, inumber++) {
|
H A D | dir.c | 234 if (sblock.e2fs.e2fs_rev < E2FS_REV1 || 235 (sblock.e2fs.e2fs_features_incompat & EXT2F_INCOMPAT_FTYPE) == 0) 316 if (sblock.e2fs.e2fs_rev > E2FS_REV0 && 317 (sblock.e2fs.e2fs_features_incompat & EXT2F_INCOMPAT_FTYPE)) 347 if (sblock.e2fs.e2fs_rev > E2FS_REV0 && 348 (sblock.e2fs.e2fs_features_incompat & EXT2F_INCOMPAT_FTYPE)) 587 if (sblock.e2fs.e2fs_rev > E2FS_REV0 && 588 (sblock.e2fs.e2fs_features_incompat & EXT2F_INCOMPAT_FTYPE)) 593 if (sblock.e2fs.e2fs_rev > E2FS_REV0 && 594 (sblock.e2fs [all...] |
H A D | utilities.c | 260 if (markclean && (sblock.e2fs.e2fs_state & E2FS_ISCLEAN) == 0) { 269 sblock.e2fs.e2fs_state = E2FS_ISCLEAN;
|
/openbsd-current/sbin/newfs_ext2fs/ |
H A D | mke2fs.c | 155 ((fs)->e2fs.e2fs_first_dblock + (fs)->e2fs.e2fs_bpg * (c)) 241 sblock.e2fs.e2fs_log_bsize = ilog2(bsize) - LOG_MINBSIZE; 242 sblock.e2fs.e2fs_log_fsize = ilog2(fsize) - LOG_MINFSIZE; 246 sblock.e2fs_bshift = sblock.e2fs.e2fs_log_bsize + LOG_MINBSIZE; 260 sblock.e2fs.e2fs_first_dblock = (sblock.e2fs_bsize > BBSIZE) ? 0 : 1; 262 sblock.e2fs.e2fs_first_dblock + 289 ncg = howmany(bcount - sblock.e2fs.e2fs_first_dblock, blocks_per_cg); 310 blocks_lastcg = bcount - sblock.e2fs.e2fs_first_dblock - 334 sblock.e2fs [all...] |
/openbsd-current/sys/ufs/ufs/ |
H A D | ufsmount.h | 53 struct m_ext2fs *e2fs; /* EXT2FS */ member in union:ufsmount::__anon10150 56 #define um_e2fs ufsmount_u.e2fs 57 #define um_e2fsb ufsmount_u.e2fs->s_es
|
H A D | inode.h | 79 struct m_ext2fs *e2fs; /* EXT2FS */ member in union:inode::__anon71 83 #define i_e2fs inode_u.e2fs 105 struct ext2fs_inode_ext e2fs; member in union:inode::__anon72 109 #define i_e2fs_last_lblk inode_ext.e2fs.ext2fs_last_lblk 110 #define i_e2fs_last_blk inode_ext.e2fs.ext2fs_last_blk 111 #define i_e2fs_uid inode_ext.e2fs.ext2fs_effective_uid 112 #define i_e2fs_gid inode_ext.e2fs.ext2fs_effective_gid 113 #define i_e2fs_ext_cache inode_ext.e2fs.ext2fs_extent_cache
|
/openbsd-current/sys/ufs/ext2fs/ |
H A D | ext2fs_vfsops.c | 138 if (fs->e2fs.e2fs_rev > E2FS_REV0) { 139 memset(fs->e2fs.e2fs_fsmnt, 0, sizeof(fs->e2fs.e2fs_fsmnt)); 140 strlcpy(fs->e2fs.e2fs_fsmnt, mp->mnt_stat.f_mntonname, 141 sizeof(fs->e2fs.e2fs_fsmnt)); 145 inittodr(fs->e2fs.e2fs_wtime); 180 (fs->e2fs.e2fs_state & E2FS_ERRORS) == 0) { 181 fs->e2fs.e2fs_state = E2FS_ISCLEAN; 195 if (fs->e2fs.e2fs_state == E2FS_ISCLEAN) 196 fs->e2fs [all...] |
H A D | ext2fs_alloc.c | 93 if (fs->e2fs.e2fs_fbcount == 0) 97 if (bpref >= fs->e2fs.e2fs_bcount) 144 if (fs->e2fs.e2fs_ficount == 0) 151 ipref = cg * fs->e2fs.e2fs_ipg + 1; 195 avgifree = fs->e2fs.e2fs_ficount / fs->e2fs_ncg; 251 return fs->e2fs.e2fs_bpg * cg + fs->e2fs.e2fs_first_dblock + 1; 353 end = howmany(fs->e2fs.e2fs_fpg, NBBY) - start; 376 fs->e2fs.e2fs_fbcount--; 380 return (cg * fs->e2fs [all...] |
H A D | ext2fs.h | 165 struct ext2fs e2fs; member in struct:m_ext2fs 369 #define ino_to_cg(fs, x) (((x) - 1) / (fs)->e2fs.e2fs_ipg) 372 (((x)-1) % (fs)->e2fs.e2fs_ipg)/(fs)->e2fs_ipb) 379 #define dtog(fs, d) (((d) - (fs)->e2fs.e2fs_first_dblock) / (fs)->e2fs.e2fs_fpg) 381 (((d) - (fs)->e2fs.e2fs_first_dblock) % (fs)->e2fs.e2fs_fpg) 403 ((fs)->e2fs.e2fs_fbcount - (fs)->e2fs.e2fs_rbcount)
|
H A D | ext2fs_dinode.h | 140 #define EXT2_DINODE_SIZE(fs) ((fs)->e2fs.e2fs_rev > E2FS_REV0 ? \ 141 (fs)->e2fs.e2fs_inode_size : \ 155 /* e2fs needs byte swapping on big-endian systems */
|
H A D | ext2fs_inode.c | 87 if (fs->e2fs.e2fs_rev <= E2FS_REV0) 90 if (!(fs->e2fs.e2fs_features_rocompat & EXT2F_ROCOMPAT_LARGE_FILE)) { 91 fs->e2fs.e2fs_features_rocompat |= EXT2F_ROCOMPAT_LARGE_FILE;
|
H A D | ext2fs_lookup.c | 726 else if (letoh32(de->e2d_ino) > VTOI(dp)->i_e2fs->e2fs.e2fs_icount) 770 if (ip->i_e2fs->e2fs.e2fs_rev > E2FS_REV0 && 771 (ip->i_e2fs->e2fs.e2fs_features_incompat & EXT2F_INCOMPAT_FTYPE)) { 947 if (ip->i_e2fs->e2fs.e2fs_rev > E2FS_REV0 && 948 (ip->i_e2fs->e2fs.e2fs_features_incompat & EXT2F_INCOMPAT_FTYPE)) {
|
H A D | ext2fs_vnops.c | 924 if (ip->i_e2fs->e2fs.e2fs_rev > E2FS_REV0 && 925 (ip->i_e2fs->e2fs.e2fs_features_incompat & EXT2F_INCOMPAT_FTYPE)) { 932 if (ip->i_e2fs->e2fs.e2fs_rev > E2FS_REV0 && 933 (ip->i_e2fs->e2fs.e2fs_features_incompat & EXT2F_INCOMPAT_FTYPE)) {
|