Searched refs:TARFS_BLOCKSIZE (Results 1 – 3 of 3) sorted by relevance
/freebsd/sys/fs/tarfs/ |
H A D | tarfs_vfsops.c | 59 CTASSERT(ZERO_REGION_SIZE >= TARFS_BLOCKSIZE); 81 CTASSERT(sizeof(struct ustar_header) == TARFS_BLOCKSIZE); 435 char block[TARFS_BLOCKSIZE]; in tarfs_alloc_one() 459 TARFS_BLOCKSIZE * blknum, TARFS_BLOCKSIZE); in tarfs_alloc_one() 463 } else if (res < TARFS_BLOCKSIZE) { in tarfs_alloc_one() 469 if (memcmp(block, zero_region, TARFS_BLOCKSIZE) == 0) { in tarfs_alloc_one() 473 __func__, TARFS_BLOCKSIZE * (blknum - 1)); in tarfs_alloc_one() 477 TARFS_BLOCKSIZE * blknum); in tarfs_alloc_one() 492 TARFS_BLOCKSIZE * (blknum - 1)); in tarfs_alloc_one() 497 __func__, TARFS_BLOCKSIZE * (blknum - 1)); in tarfs_alloc_one() [all …]
|
H A D | tarfs_subr.c | 280 if (tnp->size < nmap * TARFS_BLOCKSIZE) { in tarfs_load_blockmap() 285 map = realloc(map, nmap * TARFS_BLOCKSIZE + 1, M_TARFSBLK, in tarfs_load_blockmap() 289 map + (nmap - 1) * TARFS_BLOCKSIZE, in tarfs_load_blockmap() 290 tnp->offset + (nmap - 1) * TARFS_BLOCKSIZE, in tarfs_load_blockmap() 291 TARFS_BLOCKSIZE); in tarfs_load_blockmap() 294 else if (res < TARFS_BLOCKSIZE) in tarfs_load_blockmap() 296 map[nmap * TARFS_BLOCKSIZE] = '\0'; /* sentinel */ in tarfs_load_blockmap() 315 blk[i].i = nmap * TARFS_BLOCKSIZE; in tarfs_load_blockmap() 339 } else if (blk[i].i % TARFS_BLOCKSIZE != 0 || in tarfs_load_blockmap() 340 blk[i].o % TARFS_BLOCKSIZE != 0) { in tarfs_load_blockmap()
|
H A D | tarfs.h | 184 #define TARFS_BLOCKSIZE (size_t)(1U << TARFS_BSHIFT) macro 185 #define TARFS_BLKOFF(l) ((l) % TARFS_BLOCKSIZE) 187 #define TARFS_SZ2BLKS(sz) (((sz) + TARFS_BLOCKSIZE - 1) / TARFS_BLOCKSIZE)
|