Administrative Disk Operations These functions rename, grow, defragment, shrink, and remove virtual disk. Rename an Existing DiskVixDiskLib_Rename() changes the name of a virtual disk. Use this function only when the virtual machine is powered off.Grow an Existing Local DiskVixDiskLib_Grow() extends an existing virtual disk by adding sectors. This function supports hosted disk, but not managed disk.Defragment an Existing DiskVixDiskLib_Defragment() defragments an existing virtual disk. Defragmentation is effective with SPARSE type files, but might not do anything with FLAT type. In either case, the function returns VIX_OK. This function supports hosted disk, but not managed disk.Shrink an Existing Local DiskVixDiskLib_Shrink() reclaims unused space in an existing virtual disk, unused space being recognized as blocks of zeroes. This is more effective (gains more space) with SPARSE type files than with pre-allocated FLAT type. On success, the function returns VIX_OK. This function supports hosted disk, but not managed disk.Unlink Extents to Remove DiskVixDiskLib_Unlink() deletes all extents of the specified virtual disk, which unlinks (removes) the disk data. This is similar to the remove or erase command in a command tool.Parent topic: Virtual Disk API Functions