次の方法で共有


ConditionalMount

[The ConditionalMount property is no longer available for use as of Windows Server 2012. Instead, use the DiskRunChkDsk property.]

This property is not supported.

Attribute Value
Data type DWORD
Access Read/write
Status Optional
Structure CLUSPROP_DWORD
Minimum FALSE (0) always mount the disk
Maximum TRUE (1) conditionally mount the disk
Default TRUE

Remarks

Setting ConditionalMount to FALSE causes the operating system to attempt to mount the disk regardless of chkdsk failures, if any. With ConditionalMount set to TRUE (the default), the operating system will not attempt to mount a disk if chkdsk reports errors for the disk. Note that if chkdsk does not run, it will not produce errors, and therefore the operating system will attempt to mount the disk regardless of the ConditionalMount setting. The SkipChkdsk property determines if chkdsk runs or not.

The following table summarizes the interaction between SkipChkdsk and ConditionalMount.

SkipChkdsk value ConditionalMount value Chkdsk runs? Disk mounted?
FALSE TRUE yes If chkdsk reports errors, no. Otherwise, yes.
FALSE FALSE yes yes
TRUE TRUE no yes
TRUE FALSE no yes

Forcing a disk to mount despite errors can result in loss of data. Use caution when changing these properties.

Examples

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

DWORD          ConditionalMountData = FALSE;
CLUSPROP_DWORD ConditionalMountValue;

ConditionalMountValue.Syntax.dw = CLUSPROP_SYNTAX_LIST_VALUE_DWORD;
ConditionalMountValue.cbLength  = sizeof(DWORD);
ConditionalMountValue.dw        = ConditionalMountData;

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2003 Enterprise, Windows Server 2003 Datacenter
End of server support
Windows Server 2003 Datacenter, Windows Server 2003 Enterprise

See also

SkipChkdsk