# Name

VixDiskLibDiskType

# Description

Type of virtual disk.

# Values

VIXDISKLIB_DISK_MONOLITHIC_SPARSE
  Monolithic file, sparse
VIXDISKLIB_DISK_MONOLITHIC_FLAT
  Monolithic file, all space pre-allocated
VIXDISKLIB_DISK_SPLIT_SPARSE
  Disk split into 2GB extents, sparse
VIXDISKLIB_DISK_SPLIT_FLAT
  Disk split into 2GB extents, pre-allocated
VIXDISKLIB_DISK_VMFS_FLAT
  ESX 3.0 and above flat disks
VIXDISKLIB_DISK_STREAM_OPTIMIZED
  Disk format suitable for streaming
VIXDISKLIB_DISK_VMFS_THIN
  ESX 3.0 and above thin provisioned
VIXDISKLIB_DISK_VMFS_SPARSE
  ESX 3.0 and above sparse disks
VIXDISKLIB_DISK_UNKNOWN
  Unknown type

# Remarks

- The stream optimized format does not support random I/O.

# Example

       VixDiskLibCreateParams createParams;

       createParams.adapterType = VIXDISKLIB_ADAPTER_SCSI_LSILOGIC;
       createParams.capacity = 204800;
       createParams.diskType = VIXDISKLIB_DISK_MONOLITHIC_SPARSE;
       createParams.hwVersion = VIXDISKLIB_HWVERSION_WORKSTATION_6;
       VixError vixError = VixDiskLib_Create(appGlobals.connection,
                                    appGlobals.diskPath,
                                    &createParams,
                                    NULL,
                                    NULL);
       CHECK_AND_THROW(vixError);

Copyright (C) 2007-2018 VMware, Inc. All rights reserved.