VixError
VixDiskLib_CheckRepair(const VixDiskLibConnection connection,
const char *filename,
Bool repair);
Check the metadata of a sparse disk, and if indicated, repair that metadata.
Sparse disks only occupy space on the datastore if an area of that disk is actually used. The metadata is used to track what parts of the disk are used.
VixError vixError; char *filename = "[datastore] /folder/diskname.vmdk"; vixError = VixDiskLib_CheckRepair(connection, filename, TRUE);