次の方法で共有


SkipChkdsk

[The SkipChkdsk property is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions. Instead, use the DiskRunChkDsk property.]

Determines whether the operating system runs chkdsk on a physical disk before attempting to mount the disk. The following table summarizes the attributes of the SkipChkdsk property.

Attribute Value
Data type DWORD
Access Read/write
Status Optional
Structure CLUSPROP_DWORD
Minimum FALSE (run Chkdsk)
Maximum TRUE (skip Chkdsk)
Default FALSE

Remarks

Setting SkipChkdsk to TRUE causes the operating system to mount the disk without running chkdsk. With SkipChkdsk set to FALSE (the default), the operating system runs chkdsk first and, if errors are found, takes action based on the ConditionalMount property. 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 SkipChkdsk can be set with the following example code.

DWORD          SkipChkdskData = FALSE;
CLUSPROP_DWORD SkipChkdskValue;

SkipChkdskValue.Syntax.dw = CLUSPROP_SYNTAX_LIST_VALUE_DWORD;
SkipChkdskValue.cbLength  = sizeof(DWORD);
SkipChkdskValue.dw        = SkipChkdskData;

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

Physical Disk Private Properties

ConditionalMount