Virtual Disk API Programming Guide - Documentation - VMware
Virtual Disk API Programming Guide - Documentation - VMware
Virtual Disk API Programming Guide - Documentation - VMware
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
VixMntapi_Open<strong>Disk</strong>Set()<br />
<strong>Virtual</strong> <strong>Disk</strong> Mount <strong>API</strong><br />
Opens the set of disks for mounting on a Windows or Linux virtual machine. All the disks for a dynamic<br />
volume or Logical <strong>Disk</strong> Manager (LDM) must be opened together.<br />
VixError<br />
VixMntapi_Open<strong>Disk</strong>Set(Vix<strong>Disk</strong>LibHandle diskHandles[],<br />
int numberOf<strong>Disk</strong>s,<br />
uint32 openMode,<br />
Vix<strong>Disk</strong>SetHandle *diskSet);<br />
The Vix<strong>Disk</strong>LibHandle type, defined in vix<strong>Disk</strong>Lib.h, is the same as for the diskHandle parameter in the<br />
Vix<strong>Disk</strong>Lib_Open() function, but here it is an array instead of a single value.<br />
Parameters:<br />
diskHandles [in] Array of handles to open disks.<br />
numberOf<strong>Disk</strong>s [in] Number of disk handles in the array.<br />
openMode [in] Must be 0 (zero).<br />
diskSet [out] <strong>Disk</strong> set handle to be filled in.<br />
If you want to mount from a Windows system, first call Vix<strong>Disk</strong>Lib_Open() for every disk, then use the<br />
returned disk handle array to call VixMntapi_Open<strong>Disk</strong>Set(), which returns a disk set handle.<br />
If you want to mount from a Linux system, call the function VixMntapi_Open<strong>Disk</strong>s(), which opens and<br />
creates the disk set handle, all in one function.<br />
VixMntapi_Open<strong>Disk</strong>s()<br />
Opens disks for mounting on a Windows or Linux virtual machine. On Linux, the Logical Volume Manager<br />
(LVM) is not supported.<br />
VixError<br />
VixMntapi_Open<strong>Disk</strong>s(Vix<strong>Disk</strong>LibConnection connection,<br />
const char *diskNames[],<br />
size_t numberOf<strong>Disk</strong>s,<br />
uint32 openFlags,<br />
Vix<strong>Disk</strong>SetHandle *handle);<br />
Parameters:<br />
connection [in] The Vix<strong>Disk</strong>LibConnection to use for opening the disks. Calls Vix<strong>Disk</strong>Lib_Open()<br />
with the specified flags for each disk to open.<br />
diskNames [in] Array of disk names to open.<br />
numberOf<strong>Disk</strong>s [in] Number of disk handles in the array. Must be 1 for Linux.<br />
flags [in] Flags to open the disk.<br />
handle [out] <strong>Disk</strong> set handle to be filled in.<br />
VixMntapi_Get<strong>Disk</strong>SetInfo()<br />
Retrieves information about the disk set.<br />
VixError<br />
VixMntapi_Get<strong>Disk</strong>SetInfo(Vix<strong>Disk</strong>SetHandle handle,<br />
Vix<strong>Disk</strong>SetInfo **diskSetInfo);<br />
Parameters:<br />
handle [in] Handle to an open disk set.<br />
diskSetInfo [out] <strong>Disk</strong> set information to be filled in.<br />
<strong>VMware</strong>, Inc. 89