Home
last modified time | relevance | path

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

/src/usr.bin/mkimg/
H A Dvmdk.c43 #define VMDK_SECTOR_SIZE 512 macro
103 grainsz /= VMDK_SECTOR_SIZE; in vmdk_resize()
120 imagesz = (image_get_size() * secsz) / VMDK_SECTOR_SIZE; in vmdk_write()
135 desc_len = (n + VMDK_SECTOR_SIZE - 1) & ~(VMDK_SECTOR_SIZE - 1); in vmdk_write()
140 le64enc(&hdr.desc_size, desc_len / VMDK_SECTOR_SIZE); in vmdk_write()
143 sec = desc_len / VMDK_SECTOR_SIZE + 1; in vmdk_write()
147 gdsz = (ngts * sizeof(uint32_t) + VMDK_SECTOR_SIZE - 1) & in vmdk_write()
148 ~(VMDK_SECTOR_SIZE - 1); in vmdk_write()
156 sec += gdsz / VMDK_SECTOR_SIZE; in vmdk_write()
159 sec += VMDK_NGTES * sizeof(uint32_t) / VMDK_SECTOR_SIZE; in vmdk_write()
[all …]