18.08.2013 Views

Virtual Disk API Programming Guide - Documentation - VMware

Virtual Disk API Programming Guide - Documentation - VMware

Virtual Disk API Programming Guide - Documentation - VMware

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Virtual</strong> <strong>Disk</strong> <strong>Programming</strong> <strong>Guide</strong><br />

Alphabetic Table of Functions<br />

Start Up<br />

Function calls in the <strong>Virtual</strong> <strong>Disk</strong> <strong>API</strong> are listed alphabetically in Table 4‐1.<br />

Table 4-1. <strong>Virtual</strong> <strong>Disk</strong> <strong>API</strong> Functions<br />

Function Description<br />

Vix<strong>Disk</strong>Lib_Attach Attaches the child disk chain to the parent disk chain.<br />

Vix<strong>Disk</strong>Lib_Cleanup Removes leftover transports. See “Clean Up After Disconnect” on page 39.<br />

Vix<strong>Disk</strong>Lib_Clone Copies virtual disk to some destination, converting formats as appropriate.<br />

Vix<strong>Disk</strong>Lib_Close Closes an open virtual disk. See “Close a Local or Remote <strong>Disk</strong>” on page 30.<br />

Vix<strong>Disk</strong>Lib_Connect Connects to the virtual disk library to obtain services. See also ConnectEx.<br />

Vix<strong>Disk</strong>Lib_ConnectEx Connects to optimum transport. See “Connect to <strong>VMware</strong> vSphere” on page 37<br />

Vix<strong>Disk</strong>Lib_Create Creates a virtual disk according to specified parameters.<br />

Vix<strong>Disk</strong>Lib_CreateChild Creates a child disk (redo log or delta link) for a hosted virtual disk.<br />

Vix<strong>Disk</strong>Lib_Defragment Defragments the sectors of a virtual disk.<br />

Vix<strong>Disk</strong>Lib_Disconnect Disconnects from the library. See “Disconnect from Server” on page 35.<br />

Vix<strong>Disk</strong>Lib_EndAccess Notifies a host that it may again relocate a virtual machine. See page 38.<br />

Vix<strong>Disk</strong>Lib_Exit Releases all resources held by the library. See “Clean Up and Exit” on page 35.<br />

Vix<strong>Disk</strong>Lib_FreeErrorText Frees the message buffer allocated by GetErrorText.<br />

Vix<strong>Disk</strong>Lib_FreeInfo Frees the memory allocated by GetInfo.<br />

Vix<strong>Disk</strong>Lib_GetErrorText Returns the text description of a library error code.<br />

Vix<strong>Disk</strong>Lib_GetInfo Retrieves information about a virtual disk.<br />

Vix<strong>Disk</strong>Lib_GetMetadataKeys Retrieves all keys in the metadata of a virtual disk.<br />

Vix<strong>Disk</strong>Lib_GetTransportMode Gets current transport mode. See “Get Selected Transport Method” on page 38.<br />

Vix<strong>Disk</strong>Lib_Grow Increases size of an existing virtual disk.<br />

Vix<strong>Disk</strong>Lib_Init Initializes the old virtual disk library. Replaced by InitEx function.<br />

Vix<strong>Disk</strong>Lib_InitEx Initializes new virtual disk library. See “Initialize <strong>Virtual</strong> <strong>Disk</strong> <strong>API</strong>” on page 35.<br />

Vix<strong>Disk</strong>Lib_ListTransportModes Available transport modes. See “List Available Transport Methods” on page 37.<br />

Vix<strong>Disk</strong>Lib_Open Opens a virtual disk. See “Open a Local or Remote <strong>Disk</strong>” on page 30.<br />

Vix<strong>Disk</strong>Lib_PrepareForAccess Notifies a host to refrain from relocating a virtual machine. See page 38.<br />

Vix<strong>Disk</strong>Lib_Read Reads from an open virtual disk. See “Read Sectors From a <strong>Disk</strong>” on page 30.<br />

Vix<strong>Disk</strong>Lib_ReadMetadata Retrieves the value of a given key from disk metadata.<br />

Vix<strong>Disk</strong>Lib_Rename Changes the name of a virtual disk.<br />

Vix<strong>Disk</strong>Lib_Shrink Reclaims blocks of zeroes from the virtual disk.<br />

Vix<strong>Disk</strong>Lib_SpaceNeededForClone Computes the space required to clone a virtual disk, in bytes.<br />

Vix<strong>Disk</strong>Lib_Unlink Deletes the specified virtual disk.<br />

Vix<strong>Disk</strong>Lib_Write Writes to an open virtual disk. See “Write Sectors To a <strong>Disk</strong>” on page 30.<br />

Vix<strong>Disk</strong>Lib_WriteMetadata Updates virtual disk metadata with the given key/value pair.<br />

The Vix<strong>Disk</strong>Lib_Init() and Vix<strong>Disk</strong>Lib_Connect() functions must appear in all virtual disk programs.<br />

Vix<strong>Disk</strong>Lib_Init() has been superseded by Vix<strong>Disk</strong>Lib_InitEx().<br />

28 <strong>VMware</strong>, Inc.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!