Metadata Handling VMware provides mechanisms for reading, writing, and repairing virtual disk metadata. Read Metadata Key from DiskGet Metadata Table from DiskVixDiskLib_GetMetadataKeys() retrieves all existing keys from the metadata of a virtual disk, but not the key values. Use this in conjunction with VixDiskLib_ReadMetadata().Write Metadata Table to DiskVixDiskLib_WriteMetadata() updates virtual disk metadata with the given key-value pair. If the key-value pair is new, it gets added. If the key already exists, its value is updated. A key can be zeroed but not deleted.Check and Repair Sparse Disk MetadataVixDiskLib_CheckRepair() checks the metadata of a sparse disk, specified as a file on a connection, and optionally repairs the metadata if necessary. Sparse disks occupy space on a datastore only when a portion of the disk is used; the metadata tracks which portions are allocated.Parent topic: Virtual Disk API Functions