Virtuozzo Virtualization SDK C API Reference
|
Sets the type of the specified virtual hard disk.
PRL_RESULT PrlVmDevHd_SetDiskType( PRL_HANDLE hVmDev, PRL_HARD_DISK_INTERNAL_FORMAT nDiskType );
PrlApiVm.h
PRL_RESULT. Possible values:
PRL_ERR_INVALID_ARG - invalid handle or null pointer was passed.
PRL_ERR_SUCCESS - function completed successfully.
A virtual hard disk can be one of the two types: expanding or fixed-size. The size of an expanding hard disk is expanded dynamically up to a predefined limit. The size of a fixed-size hard disk is set to the specified value at the time of creation. The function can be used with both new and existing virtual hard disks.