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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

4Vi<br />

<strong>Virtual</strong> <strong>Disk</strong> <strong>API</strong> Functions 4<br />

This chapter provides an overview of functions in the <strong>Virtual</strong> <strong>Disk</strong> <strong>API</strong> and includes the following sections:<br />

“<strong>Virtual</strong> <strong>Disk</strong> Library Functions” on page 27<br />

“Start Up” on page 28<br />

“<strong>Disk</strong> Operations” on page 30<br />

“Error Handling” on page 31<br />

“Metadata Handling” on page 31<br />

“Cloning a <strong>Virtual</strong> <strong>Disk</strong>” on page 31<br />

“<strong>Disk</strong> Chaining and Redo Logs” on page 32<br />

“Administrative <strong>Disk</strong> Operations” on page 33<br />

“Shut Down” on page 35<br />

“Advanced Transport <strong>API</strong>s” on page 35<br />

“Updating Applications for Advanced Transport” on page 39<br />

“Multithreading Considerations” on page 41<br />

“Capabilities of Library Calls” on page 41<br />

After a presentation of <strong>Virtual</strong> <strong>Disk</strong> <strong>API</strong> functions in alphabetic order, sections focus on what the functions do,<br />

in the normal order they would appear in a program, except advanced transport functions (SAN and HotAdd)<br />

appear after the shutdown functions.<br />

<strong>Virtual</strong> <strong>Disk</strong> Library Functions<br />

You can find the Vix<strong>Disk</strong>Lib <strong>API</strong> Reference by using a Web browser to open the doc/index.html file in the<br />

VDDK software distribution. As in most reference manuals, functions are organized alphabetically, whereas<br />

in this chapter, functions are ordered by how they might be called.<br />

When the <strong>API</strong> reference says that a function supports “only hosted disks,” it means virtual disk images hosted<br />

by <strong>VMware</strong> Workstation or similar products. <strong>Virtual</strong> disk stored on VMFS partitions managed by ESX/ESXi or<br />

vCenter Server is called “managed disk.”<br />

The functions described in this chapter are based on concepts and employ data structures documented in<br />

Chapter 3, “<strong>Virtual</strong> <strong>Disk</strong> Interfaces,” on page 19.<br />

If the library accesses virtual disk on VMFS, I/O by default goes through the ESX/ESXi host, which manages<br />

physical disk storage. To use function calls that provide direct access to SAN storage, start your program by<br />

calling the Vix<strong>Disk</strong>Lib_ConnectEx() function, as described in “Advanced Transport <strong>API</strong>s” on page 35.<br />

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

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

Saved successfully!

Ooh no, something went wrong!