Share via


CreateRamWTDisk method of the WT_Disk class

Create a new RAM-based iSCSI virtual disk, which is not persisted and cannot be used in a failover cluster environment.

Syntax

WT_Disk CreateRamWTDisk(
  [in] string DevicePath,
  [in] uint64 MaxInternalSize,
  [in] uint32 LogicalSectorSize,
  [in] uint32 PhysicalSectorSize,
  [in] string Description
);

Parameters

DevicePath [in]

A decorated device path in the format of "RAMDISK:".

MaxInternalSize [in]

The maximum size of the virtual hard disk as viewable by an initiator, in bytes. The specified size is rounded up based on the larger value of among logical, physical sector size and memory page size.

LogicalSectorSize [in]

The logical sector size in bytes used by the virtual disk.

PhysicalSectorSize [in]

The physical sector size in bytes used by the virtual disk.

Description [in]

iSCSI disk description.

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2012 R2
Namespace
Root\Wmi
MOF
Wmiwtprovider.mof
DLL
WtWmiProv.dll

See also

WT_Disk