Compartilhar via


DiskPath

Used in some recovery scenarios. If this is set to a disk (for example "H:\") then the Physical Disk resource will take control of that disk as part of the recovery process. The following table summarizes the attributes of the DiskPath property.

Attribute Value
Data type Null-terminated Unicode string
Access Read/write
Status Optional
Structure CLUSPROP_SZ
Maximum None (but see Maximum Property Size.)
Default 0

Remarks

The CLUSPROP_SZ_DECLARE macro creates a CLUSPROP_SZ structure with an array of the correct size.

Examples

The property value portion of a property list entry for DiskPath can be set with the following example code.

WCHAR                szDiskPathData[] = L"H:\\";
CLUSPROP_SZ_DECLARE( DiskPathValue, 
                     sizeof( szDiskPathData ) / sizeof( WCHAR ) );

DiskPathValue.Syntax.dw = CLUSPROP_SYNTAX_LIST_VALUE_SZ;
DiskPathValue.cbLength  = sizeof( szDiskPathData );
StringCbCopy( DiskPathValue.sz, 
              DiskPathValue.cbLength, 
              szDiskPathData );

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2008 Datacenter, Windows Server 2008 Enterprise

See also

Physical Disk Private Properties

CLUSPROP_SZ

CLUSPROP_SZ_DECLARE