Searched refs:tp_bsize (Results 1 - 9 of 9) sorted by relevance
/illumos-gate/usr/src/cmd/backup/restore/ |
H A D | tape.c | 92 saved_ntrec = (ntrec * (tp_bsize/DEV_BSIZE)); 163 nsize = size * tp_bsize; 247 * MTB_MAGIC. If that is true, we need to adjust tp_bsize. 248 * We have assumed to this time that tp_bsize was 1024, if 249 * this is a newer dump, get the real tp_bsize from the header, 253 tp_bsize = spcl.c_tpbsize; 254 if ((tp_bsize % TP_BSIZE_MIN != 0) || 255 (tp_bsize > TP_BSIZE_MAX)) { 260 ntrec = (tape_rec_size/tp_bsize); 277 ((tp_bsize 1547 i, ntrec * tp_bsize); local 1623 rd, ntrec * tp_bsize); local [all...] |
H A D | main.c | 55 ssize_t tape_rec_size = 0; /* tape record size (ntrec * tp_bsize) */ 71 int32_t tp_bsize = TP_BSIZE_MIN; variable 305 ntrec /= (tp_bsize/DEV_BSIZE);
|
/illumos-gate/usr/src/cmd/backup/dump/ |
H A D | dumpmain.c | 52 uint_t forceflag = 0; /* forced to change tp_bsize */ 58 int32_t tp_bsize = TP_BSIZE_MIN; /* tape block record size (frag size) */ variable 306 * tp_bsize later, we will have to recalculate 317 ntrec /= (tp_bsize/DEV_BSIZE); 562 * save ntrec in case we have to change tp_bsize later. 564 saved_ntrec = (ntrec * (tp_bsize/DEV_BSIZE)); 908 * (tp_bsize /* bytes/block */ 925 * (tp_bsize /* bytes / block */ 947 * If the estimated number of tp_bsize tape blocks is greater than 948 * INT_MAX we have to adjust tp_bsize an [all...] |
H A D | dumptraverse.c | 515 u_offset_t tbperfsb = (unsigned)(sblock->fs_bsize / tp_bsize); 534 bytepos = (offset_t)pos * tp_bsize; 538 loffset += (u_offset_t)tp_bsize * 540 d_howmany(bytes, (u_offset_t)tp_bsize); 551 tpblkskip = d_howmany(diff, (u_offset_t)tp_bsize); 560 (u_offset_t)(unsigned)tp_bsize); 570 if (bytes < TP_NINDIR*tp_bsize) 572 count = d_howmany(bytes, (u_offset_t)tp_bsize); 577 bytes -= (tpblkskip * (u_offset_t)tp_bsize); 581 bytes -= (offset_t)TP_NINDIR*tp_bsize; [all...] |
H A D | dumptape.c | 223 writesize = ntrec * tp_bsize; 299 for (i = 0, j = 0; i < NBUF * ntrec; i++, j += tp_bsize) { 303 reqsiz = sizeof (struct req) + tp_bsize - sizeof (long); 489 data = xmalloc(tp_bsize); 495 size = atomic((int(*)())read, cmd[0], data, tp_bsize); 496 if (size == tp_bsize) { 498 (size = write(archivefd, data, tp_bsize)) 499 != tp_bsize) { 653 spcl.c_magic = (tp_bsize == TP_BSIZE_MIN) ? NFS_MAGIC : MTB_MAGIC; 657 assert((tp_bsize [all...] |
H A D | dumpitime.c | 350 * This is an estimation of the number of tp_bsize blocks in the file. 376 s = (unsigned)(ip->di_blocks) / (unsigned)(tp_bsize / DEV_BSIZE); 378 t = d_howmany(ip->di_size, (unsigned)tp_bsize); 385 (unsigned)(NDADDR * sblock->fs_bsize / tp_bsize), 398 f_esize += d_howmany(msiz * sizeof (map[0]), (unsigned)tp_bsize);
|
/illumos-gate/usr/src/head/protocols/ |
H A D | dumprestore.h | 56 * In the new format, tp_bsize is used to store the 73 * number of TP_BSIZE (or tp_bsize) blocks that are written 86 extern int32_t tp_bsize;
|
/illumos-gate/usr/src/cmd/backup/lib/ |
H A D | byteorder.c | 120 if ((unsigned)size < tp_bsize) 123 j = tp_bsize / sizeof (int);
|
H A D | rmtlib.c | 38 extern int32_t tp_bsize; 205 size = ntrec * tp_bsize; 206 while (size > tp_bsize && 209 size -= tp_bsize;
|
Completed in 205 milliseconds