Home
last modified time | relevance | path

Searched refs:TP_BSIZE (Results 1 – 6 of 6) sorted by relevance

/freebsd-14-stable/sbin/restore/
HDtape.c189 free(tapebuf - TP_BSIZE); in newtapebuf()
190 tapebuf = malloc((size+1) * TP_BSIZE); in newtapebuf()
195 tapebuf += TP_BSIZE; in newtapebuf()
260 if (stbuf.st_blksize > 0 && stbuf.st_blksize < TP_BSIZE ) in setup()
261 fssize = TP_BSIZE; in setup()
262 if (stbuf.st_blksize >= TP_BSIZE && stbuf.st_blksize <= MAXBSIZE) in setup()
264 if (((TP_BSIZE - 1) & stbuf.st_blksize) != 0) { in setup()
266 "blocksize (%d);\n", TP_BSIZE, stbuf.st_blksize); in setup()
267 fssize = roundup(fssize, TP_BSIZE); in setup()
283 maxino = (spcl.c_count * TP_BSIZE * NBBY) + 1; in setup()
[all …]
/freebsd-14-stable/sbin/dump/
HDtraverse.c114 blkest = howmany(dbtob(DIP(dp, di_blocks)), TP_BSIZE); in blockest()
115 sizeest = howmany(DIP(dp, di_size), TP_BSIZE); in blockest()
121 UFS_NDADDR * sblock->fs_bsize / TP_BSIZE, TP_NINDIR); in blockest()
458 char buf[TP_BSIZE]; in dumpino()
624 blks = howmany(frags * sblock->fs_fsize, TP_BSIZE); in ufs1_blksout()
645 dumpblock(*bp, (count - j) * TP_BSIZE); in ufs1_blksout()
667 blks = howmany(frags * sblock->fs_fsize, TP_BSIZE); in ufs2_blksout()
671 TP_BSIZE); in ufs2_blksout()
674 TP_BSIZE); in ufs2_blksout()
676 blks -= howmany(sblock->fs_fsize, TP_BSIZE) - resid; in ufs2_blksout()
[all …]
HDmain.c137 if (TP_BSIZE / DEV_BSIZE == 0 || TP_BSIZE % DEV_BSIZE != 0) in main()
472 tp_bshift = ffs(TP_BSIZE) - 1; in main()
473 if (TP_BSIZE != (1 << tp_bshift)) in main()
474 quit("TP_BSIZE (%d) is not a power of 2", TP_BSIZE); in main()
476 mapsize = roundup(howmany(maxino, CHAR_BIT), TP_BSIZE); in main()
480 tapesize = 3 * (howmany(mapsize * sizeof(char), TP_BSIZE) + 1); in main()
511 * TP_BSIZE /* bytes/block */ in main()
524 * TP_BSIZE /* bytes / block */ in main()
536 (howmany(mapsize * sizeof(char), TP_BSIZE) + 1); in main()
HDtape.c107 char (*tblock)[TP_BSIZE]; /* buffer for data blocks */
112 static char (*nextblock)[TP_BSIZE];
129 writesize = ntrec * TP_BSIZE; in alloctape()
147 malloc((unsigned)(reqsiz + writesize + pgoff + TP_BSIZE)); in alloctape()
150 workers[i].tblock = (char (*)[TP_BSIZE]) in alloctape()
465 prev->count * (TP_BSIZE / DEV_BSIZE); in rollforward()
793 p->count * TP_BSIZE); in worker()
797 TP_BSIZE) != TP_BSIZE) in worker()
HDdumprmt.c165 size = ntrec * TP_BSIZE; in rmtgetconn()
170 while (size > TP_BSIZE && in rmtgetconn()
172 size -= TP_BSIZE; in rmtgetconn()
/freebsd-14-stable/include/protocols/
HDdumprestore.h54 #define TP_BSIZE 1024 macro
57 #define TP_NINDIR (TP_BSIZE/2)
78 char dummy[TP_BSIZE];