VMware Cloud Community
Mike60
Contributor
Contributor

VixDiskLib_Read() and block size

Hello folks,

In the last several versions of the Virtual Disk Development Kit Programming Guide, it states:

 

"VixDiskLib_Read() reads a range of sectors from an open virtual disk. You specify the beginning sector
and the number of sectors. Sector size could vary, but is defined in <vixDiskLib.h> as 512 bytes
because VMDK files have that sector size."

 

My question is how does the caller of this function know the sector size? On the one hand, the documentation states that the sector size could vary. On the other hand, the documentation states that it is defined as 512 bytes, which I verified in the indicated header file.

We're using CBT to find and backup changed areas of a disk. We make a bitmap based on the information from CBT. When it comes time to reading the VMDK, we're not really sure what sector size to use here.

Thanks,
Mike

0 Kudos
0 Replies