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.

A<br />

<strong>Virtual</strong> <strong>Disk</strong> Mount <strong>API</strong> A<br />

As of the VDDK 1.1 release, you can use the disk mount <strong>API</strong> (vixMntapi) for local and remote mounting of<br />

virtual disks. The vmware-mount command does this too. VixMntapi involves a separate library for loading.<br />

“The VixMntapi Library” on page 87<br />

“<strong>Programming</strong> with VixMntapi” on page 92<br />

“Sample VixMntapi Code” on page 93<br />

“Restrictions on <strong>Virtual</strong> <strong>Disk</strong> Mount” on page 93<br />

CAUTION The vixMntapi library for Windows supports advanced transport for SAN and HotAdd, but for<br />

Linux the vixMntapi library supports only local and LAN transport (file, nbd, nbdssl).<br />

The VixMntapi Library<br />

The VixMntapi library supports guest operating systems on multiple platforms. On POSIX systems it requires<br />

FUSE mount, available on recent Linux systems, and freely available on the SourceForge Web site.<br />

Definitions are contained in the following header file, installed in the same directory as vix<strong>Disk</strong>Lib.h:<br />

#include "vixMntapi.h"<br />

Types and Structures<br />

This section summarizes the important types and structures.<br />

Operating System Information<br />

The VixOsInfo structure encapsulates the following information:<br />

Family of the guest operating system, VixOsFamily, one of the following:<br />

Windows (NT‐based)<br />

Linux<br />

Netware<br />

Solaris<br />

FreeBSD<br />

OS/2<br />

Mac OS X (Darwin)<br />

Major version and minor version of the operating system<br />

Whether it is 64‐bit or 32‐bit<br />

Vendor and edition of the operating system<br />

Location where the operating system is installed<br />

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

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

Saved successfully!

Ooh no, something went wrong!