Updating Applications for Advanced Transport
To update your applications for advanced transport with managed disk, follow these steps:
- Find all instances ofVixDiskLib_Connect()and change them toVixDiskLib_ConnectEx().The vixDiskLib sample program was extended to useVixDiskLib_ConnectEx()with the-modoption.
- Likewise, changeVixDiskLib_Init()toVixDiskLib_InitEx()and be sure to call it only once.
- Disable virtual machine relocation with theVixDiskLib_PrepareForAccess()call.
- Add parameters in the middle:
- TRUEfor high performance read-only access,FALSEfor read/write access.
- SnapshotmoRef, if applicable.
- NULLto accept transport method defaults (recommended).
- Re-enable virtual machine relocation with theVixDiskLib_EndAccess()call.
- FindVixDiskLib_Disconnect()near the end of program, and for safety add aVixDiskLib_Cleanup()call immediately afterwards.
- Compile with the new flexible-transport-enabled version of VixDiskLib.The advanced transport functions are useful for backing up or restoring data on virtual disks managed by VMware vSphere. Backup is based on the snapshot mechanism, which provides a data view at a certain point in time, and allows access to quiescent data on the parent disk while the child disk continues changing.