Virtual Disk API Programming Guide - Documentation - VMware
Virtual Disk API Programming Guide - Documentation - VMware
Virtual Disk API Programming Guide - Documentation - VMware
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Algorithm for vSphere Backup 39<br />
Best Practices for Backup 40<br />
Backup and Recovery Example 40<br />
Licensing of Advanced Transports 41<br />
Multithreading Considerations 41<br />
Multiple Threads and Vix<strong>Disk</strong>Lib 41<br />
Capabilities of Library Calls 41<br />
Support for Managed <strong>Disk</strong> 41<br />
Support for Hosted <strong>Disk</strong> 42<br />
5 <strong>Virtual</strong> <strong>Disk</strong> <strong>API</strong> Sample Code 43<br />
Compiling the Sample Program 43<br />
Visual C++ on Windows 43<br />
SLN and VCPROJ Files 43<br />
C++ on Linux Systems 44<br />
Makefile 44<br />
Library Files Required 44<br />
Usage Message 44<br />
Walk‐Through of Sample Program 45<br />
Include Files 45<br />
Definitions and Structures 45<br />
Dynamic Loading 46<br />
Wrapper Classes 46<br />
Command Functions 46<br />
DoInfo() 46<br />
DoCreate() 47<br />
DoRedo() 47<br />
Write by DoFill() 47<br />
DoReadMetadata() 47<br />
DoWriteMetadata() 47<br />
DoDumpMetadata() 47<br />
DoDump() 48<br />
DoTestMultiThread() 48<br />
DoClone() 48<br />
SSL Certificate Thumbprint 48<br />
6 Practical <strong>Programming</strong> Tasks 49<br />
Scan VMDK for Virus Signatures 49<br />
Creating <strong>Virtual</strong> <strong>Disk</strong>s 50<br />
Creating Local <strong>Disk</strong> 50<br />
Creating Remote <strong>Disk</strong> 51<br />
Special Consideration for ESX/ESXi Hosts 51<br />
Working with <strong>Virtual</strong> <strong>Disk</strong> Data 51<br />
Reading and Writing Local <strong>Disk</strong> 51<br />
Reading and Writing Remote <strong>Disk</strong> 52<br />
Deleting a <strong>Disk</strong> (Unlink) 52<br />
Effects of Deleting a <strong>Virtual</strong> <strong>Disk</strong> 52<br />
Renaming a <strong>Disk</strong> 52<br />
Effects of Renaming a <strong>Virtual</strong> <strong>Disk</strong> 52<br />
Working with <strong>Disk</strong> Metadata 52<br />
Managing Child <strong>Disk</strong>s 52<br />
Creating Redo Logs 52<br />
<strong>Virtual</strong> <strong>Disk</strong> in Snapshots 53<br />
Windows 2000 Read‐Only File System 53<br />
Contents<br />
<strong>VMware</strong>, Inc. 5