Lines Matching refs:grainsz
88 static uint64_t grainsz;
97 grainsz = (blksz < VMDK_MIN_GRAIN_SIZE) ? VMDK_MIN_GRAIN_SIZE : blksz;
101 (uintmax_t)imagesz, (uintmax_t)grainsz);
103 grainsz /= VMDK_SECTOR_SIZE;
127 le64enc(&hdr.grain_size, grainsz);
145 ngrains = imagesz / grainsz;
175 sec = (sec + grainsz - 1) & ~(grainsz - 1);
194 blkcnt = (grainsz * VMDK_SECTOR_SIZE) / secsz;
199 cursec += grainsz;
240 blkcnt = (grainsz * VMDK_SECTOR_SIZE) / secsz;