Lines Matching defs:blockSize
132 sector_align(off_t offset, int32 blockSize)
134 return offset / blockSize * blockSize;
140 sector_align_up(off_t offset, int32 blockSize)
142 return (offset + blockSize - 1) / blockSize * blockSize;
1044 tries to allocate buffer with the size: blockSize * tryAlloc
1045 if it's not possible, tries smaller buffer (until the size: blockSize * 1)
1046 returns pointer to the buffer (it's size is: blockSize * allocated)
1050 allocate_buffer(uint32 blockSize, int32 tryAlloc, int32* allocated)
1054 buffer = new(nothrow) uint8[i * blockSize];
1371 uint32 blockSize, disk_job_id job)
1373 if (blockSize == 0)
1378 void* block = malloc(blockSize);
1383 memset(block, 0, blockSize);
1385 if (write_pos(fd, 0, block, blockSize) < 0)