Home
last modified time | relevance | path

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

/netbsd-src/sbin/fsck_ext2fs/
H A Ddir.c175 dsize = fs2h16(dp->e2d_reclen); in dirscan()
232 idesc->id_loc += fs2h16(dp->e2d_reclen); in fsck_readdir()
233 idesc->id_filesize -= fs2h16(dp->e2d_reclen); in fsck_readdir()
247 dp->e2d_reclen = h2fs16(fs2h16(dp->e2d_reclen) + size); in fsck_readdir()
264 u_int16_t reclen = fs2h16(dp->e2d_reclen); in dircheck()
313 (fs2h16(dp->e2di_mode) & IFMT) == IFDIR ? "DIR" : "FILE", pathbuf); in fileerror()
324 if (fs2h16(dp->e2di_nlink) == lcnt) { in adjust()
329 ((fs2h16(dp->e2di_mode) & IFMT) == IFDIR ? "DIR" : "FILE")); in adjust()
332 fs2h16(dp->e2di_nlink), fs2h16(dp->e2di_nlink) - lcnt); in adjust()
341 dp->e2di_nlink = h2fs16(fs2h16(dp->e2di_nlink) - lcnt); in adjust()
[all …]
H A Dpass5.c195 if (debug && (fs2h16(fs->e2fs_gd[c].ext2bgd_nbfree) != nbfree || in pass5()
196 fs2h16(fs->e2fs_gd[c].ext2bgd_nifree) != nifree || in pass5()
197 fs2h16(fs->e2fs_gd[c].ext2bgd_ndirs) != ndirs)) { in pass5()
200 fs2h16(fs->e2fs_gd[c].ext2bgd_nbfree), in pass5()
201 fs2h16(fs->e2fs_gd[c].ext2bgd_nifree), in pass5()
202 fs2h16(fs->e2fs_gd[c].ext2bgd_ndirs), in pass5()
209 if ((fs2h16(fs->e2fs_gd[c].ext2bgd_nbfree) != nbfree || in pass5()
210 fs2h16(fs->e2fs_gd[c].ext2bgd_nifree) != nifree || in pass5()
211 fs2h16(fs->e2fs_gd[c].ext2bgd_ndirs) != ndirs) && in pass5()
H A Dpass2.c131 dp->e2di_mode = h2fs16((fs2h16(dp->e2di_mode) & ~IFMT) | IFDIR); in pass2()
270 } else if (fs2h16(dirp->e2d_reclen) < entrysize) { in pass2check()
272 } else if (fs2h16(dirp->e2d_reclen) < 2 * entrysize) { in pass2check()
278 n = fs2h16(dirp->e2d_reclen) - entrysize; in pass2check()
304 if (fs2h16(dirp->e2d_reclen) < n + entrysize) in pass2check()
306 proto.e2d_reclen = h2fs16(fs2h16(dirp->e2d_reclen) - n); in pass2check()
311 memset(dirp, 0, (size_t)fs2h16(proto.e2d_reclen)); in pass2check()
335 } else if (fs2h16(dirp->e2d_reclen) < entrysize) { in pass2check()
409 (fs2h16(dp->e2di_mode) & IFMT) == IFDIR ? DSTATE : FSTATE; in pass2check()
410 lncntp[fs2h32(dirp->e2d_ino)] = fs2h16(dp->e2di_nlink); in pass2check()
H A Dinode.c143 if ((fs2h16(dp->e2di_mode) & IFMT) == IFREG) in inosize()
153 if ((fs2h16(dp->e2di_mode) & IFMT) == IFREG) { in inossize()
160 (unsigned long long)size, fs2h16(dp->e2di_mode) & IFMT); in inossize()
180 mode = fs2h16(dp->e2di_mode) & IFMT; in ckinode()
581 (fs2h16(dp->e2di_mode) & IFMT) == IFDIR ? "DIR" : "FILE"); in clri()
642 uid = fs2h16(dp->e2di_uid); in pinode()
644 uid |= fs2h16(dp->e2di_uid_high) << 16; in pinode()
652 printf("MODE=%o\n", fs2h16(dp->e2di_mode)); in pinode()
768 nblock |= (uint64_t)fs2h16(dp->e2di_nblock_high) << 32; in inonblock()
H A Dpass1.c169 mode = fs2h16(dp->e2di_mode) & IFMT; in checkinode()
278 lncntp[inumber] = fs2h16(dp->e2di_nlink); in checkinode()
H A Dutilities.c91 switch (fs2h16(dp->e2di_mode) & IFMT) { in ftypeok()
104 printf("bad file type 0%o\n", fs2h16(dp->e2di_mode)); in ftypeok()
H A Dsetup.c276 numdirs += fs2h16(sblock.e2fs_gd[cg].ext2bgd_ndirs); in setup()
/netbsd-src/sys/ufs/ext2fs/
H A Dext2fs_alloc.c219 (fs2h16(fs->e2fs_gd[cg].ext2bgd_nifree_hi) << 16) in ext2fs_dirpref()
220 | fs2h16(fs->e2fs_gd[cg].ext2bgd_nifree); in ext2fs_dirpref()
225 (fs2h16(fs->e2fs_gd[cg].ext2bgd_nbfree_hi) << 16) in ext2fs_dirpref()
226 | fs2h16(fs->e2fs_gd[cg].ext2bgd_nbfree); in ext2fs_dirpref()
468 KASSERT(fs2h16(fs->e2fs_gd[cg].ext2bgd_nifree) == fs->e2fs.e2fs_ipg); in ext2fs_nodealloccg()
668 uint32_t ext2bgd_nifree = fs2h16(gd->ext2bgd_nifree) | in ext2fs_cg_update()
669 (fs2h16(gd->ext2bgd_nifree_hi) << 16); in ext2fs_cg_update()
683 fs2h16(gd->ext2bgd_itable_unused_lo))) { in ext2fs_cg_update()
694 uint32_t ext2bgd_nbfree = fs2h16(gd->ext2bgd_nbfree) in ext2fs_cg_update()
695 | (fs2h16(gd->ext2bgd_nbfree_hi) << 16); in ext2fs_cg_update()
[all …]
H A Dext2fs_lookup.c201 e2d_reclen = fs2h16(dp->e2d_reclen); in ext2fs_readdir()
477 int size = fs2h16(ep->e2d_reclen); in ext2fs_lookup()
485 slotsize = fs2h16(ep->e2d_reclen); in ext2fs_lookup()
493 fs2h16(ep->e2d_reclen) - in ext2fs_lookup()
514 results->ulr_reclen = fs2h16(ep->e2d_reclen); in ext2fs_lookup()
519 results->ulr_offset += fs2h16(ep->e2d_reclen); in ext2fs_lookup()
520 entryoffsetinblock += fs2h16(ep->e2d_reclen); in ext2fs_lookup()
839 int reclen = fs2h16(de->e2d_reclen); in ext2fs_dirbadentry()
995 spacefree = fs2h16(ep->e2d_reclen) - dsize; in ext2fs_add_entry()
996 for (loc = fs2h16(e in ext2fs_add_entry()
[all...]
H A Dext2fs.h485 # define fs2h16(x) (x) macro
495 # define fs2h16(x) bswap16(x) macro
H A Dext2fs_rename.c627 reclen = fs2h16(ep->e2d_reclen); in ext2fs_rename_recalculate_fulr()
H A Dext2fs_vfsops.c568 < fs2h16(din->e2di_extra_isize)) in ext2fs_loadvnode_content()
/netbsd-src/sys/lib/libsa/
H A Dminixfs3.h132 # define fs2h16(x) (x) macro
141 # define fs2h16(x) bswap16(x) macro
H A Dext2fs.c393 dp = (void *)((char *)dp + fs2h16(dp->e2d_reclen))) { in search_directory()
394 if (fs2h16(dp->e2d_reclen) <= 0) in search_directory()
844 dp = (void *)((char *)dp + fs2h16(dp->e2d_reclen))) { in ext2fs_ls()
847 if (fs2h16(dp->e2d_reclen) <= 0) in ext2fs_ls()
/netbsd-src/sbin/newfs_ext2fs/
H A Dmke2fs.c509 fbcount += fs2h16(gd[cylno].ext2bgd_nbfree); in mke2fs()
518 ficount += fs2h16(gd[cylno].ext2bgd_nifree); in mke2fs()
1310 gd[0].ext2bgd_nbfree = h2fs16(fs2h16(gd[0].ext2bgd_nbfree)-1); in alloc()
1312 gd[0].ext2bgd_ndirs = h2fs16(fs2h16(gd[0].ext2bgd_ndirs)+1); in alloc()
1360 gd[c].ext2bgd_nifree = h2fs16(fs2h16(gd[c].ext2bgd_nifree)-1); in iput()
/netbsd-src/usr.sbin/installboot/
H A Dext2fs.c358 if (fs2h16(de->e2d_reclen) == 0) in ext2fs_findstage2_ino()
361 fs2h16(de->e2d_reclen)); in ext2fs_findstage2_ino()