Home
last modified time | relevance | path

Searched refs:fs2h16 (Results 1 – 10 of 10) sorted by relevance

/mirbsd/src/sbin/fsck_ext2fs/
Ddir.c137 dsize = fs2h16(dp->e2d_reclen); in dirscan()
194 idesc->id_loc += fs2h16(dp->e2d_reclen); in fsck_readdir()
195 idesc->id_filesize -= fs2h16(dp->e2d_reclen); in fsck_readdir()
209 dp->e2d_reclen = h2fs16(fs2h16(dp->e2d_reclen) + size); in fsck_readdir()
226 u_int16_t reclen = fs2h16(dp->e2d_reclen); in dircheck()
280 (fs2h16(dp->e2di_mode) & IFMT) == IFDIR ? "DIR" : "FILE", pathbuf); in fileerror()
291 if (fs2h16(dp->e2di_nlink) == lcnt) { in adjust()
296 ((fs2h16(dp->e2di_mode) & IFMT) == IFDIR ? "DIR" : "FILE")); in adjust()
299 fs2h16(dp->e2di_nlink), fs2h16(dp->e2di_nlink) - lcnt); in adjust()
308 dp->e2di_nlink = h2fs16(fs2h16(dp->e2di_nlink) - lcnt); in adjust()
[all …]
Dpass5.c164 if (debug && (fs2h16(fs->e2fs_gd[c].ext2bgd_nbfree) != nbfree || in pass5()
165 fs2h16(fs->e2fs_gd[c].ext2bgd_nifree) != nifree || in pass5()
166 fs2h16(fs->e2fs_gd[c].ext2bgd_ndirs) != ndirs)) { in pass5()
169 fs2h16(fs->e2fs_gd[c].ext2bgd_nbfree), in pass5()
170 fs2h16(fs->e2fs_gd[c].ext2bgd_nifree), in pass5()
171 fs2h16(fs->e2fs_gd[c].ext2bgd_ndirs), in pass5()
178 if ((fs2h16(fs->e2fs_gd[c].ext2bgd_nbfree) != nbfree || in pass5()
179 fs2h16(fs->e2fs_gd[c].ext2bgd_nifree) != nifree || in pass5()
180 fs2h16(fs->e2fs_gd[c].ext2bgd_ndirs) != ndirs) && in pass5()
Dpass2.c99 dp->e2di_mode = h2fs16((fs2h16(dp->e2di_mode) & ~IFMT) | IFDIR); in pass2()
238 } else if (fs2h16(dirp->e2d_reclen) < entrysize) { in pass2check()
240 } else if (fs2h16(dirp->e2d_reclen) < 2 * entrysize) { in pass2check()
246 n = fs2h16(dirp->e2d_reclen) - entrysize; in pass2check()
272 if (fs2h16(dirp->e2d_reclen) < n + entrysize) in pass2check()
274 proto.e2d_reclen = h2fs16(fs2h16(dirp->e2d_reclen) - n); in pass2check()
279 memset(dirp, 0, (size_t)fs2h16(proto.e2d_reclen)); in pass2check()
303 } else if (fs2h16(dirp->e2d_reclen) < entrysize) { in pass2check()
377 (fs2h16(dp->e2di_mode) & IFMT) == IFDIR ? DSTATE : FSTATE; in pass2check()
378 lncntp[fs2h32(dirp->e2d_ino)] = fs2h16(dp->e2di_nlink); in pass2check()
Dsetup.c228 numdirs += fs2h16(sblock.e2fs_gd[cg].ext2bgd_ndirs); in setup()
392 bp->b_un.b_fs->e2fs_mnt_count = fs2h16(sblock.e2fs.e2fs_mnt_count); in copyback_sb()
394 fs2h16(sblock.e2fs.e2fs_max_mnt_count); in copyback_sb()
395 bp->b_un.b_fs->e2fs_magic = fs2h16(sblock.e2fs.e2fs_magic); in copyback_sb()
396 bp->b_un.b_fs->e2fs_state = fs2h16(sblock.e2fs.e2fs_state); in copyback_sb()
397 bp->b_un.b_fs->e2fs_beh = fs2h16(sblock.e2fs.e2fs_beh); in copyback_sb()
398 bp->b_un.b_fs->e2fs_ruid = fs2h16(sblock.e2fs.e2fs_ruid); in copyback_sb()
399 bp->b_un.b_fs->e2fs_rgid = fs2h16(sblock.e2fs.e2fs_rgid); in copyback_sb()
Dinode.c90 if ((fs2h16(dp->e2di_mode) & IFMT) == IFREG) in inosize()
100 if ((fs2h16(dp->e2di_mode) & IFMT) == IFREG) { in inossize()
107 (unsigned long long)size, fs2h16(dp->e2di_mode) & IFMT); in inossize()
127 mode = fs2h16(dp->e2di_mode) & IFMT; in ckinode()
565 uid = fs2h16(dp->e2di_uid_low) | (fs2h16(dp->e2di_uid_high) << 16); in pinode()
572 printf("MODE=%o\n", fs2h16(dp->e2di_mode)); in pinode()
Dpass1.c133 mode = fs2h16(dp->e2di_mode) & IFMT; in checkinode()
237 lncntp[inumber] = fs2h16(dp->e2di_nlink); in checkinode()
Dutilities.c58 switch (fs2h16(dp->e2di_mode) & IFMT) { in ftypeok()
71 printf("bad file type 0%o\n", fs2h16(dp->e2di_mode)); in ftypeok()
/mirbsd/src/sys/ufs/ext2fs/
Dext2fs_lookup.c187 e2d_reclen = fs2h16(dp->e2d_reclen);
416 int size = fs2h16(ep->e2d_reclen);
424 slotsize = fs2h16(ep->e2d_reclen);
432 fs2h16(ep->e2d_reclen) - slotoffset;
452 dp->i_reclen = fs2h16(ep->e2d_reclen);
458 dp->i_offset += fs2h16(ep->e2d_reclen);
459 entryoffsetinblock += fs2h16(ep->e2d_reclen);
723 int reclen = fs2h16(de->e2d_reclen);
848 spacefree = fs2h16(ep->e2d_reclen) - dsize;
849 for (loc = fs2h16(ep->e2d_reclen); loc < dp->i_count; ) {
[all …]
Dext2fs.h245 #define fs2h16(x) letoh16(x) macro
Dext2fs_vfsops.c1084 if (fs2h16(fs->e2fs_magic) != E2FS_MAGIC) {