Skip to content

Latest commit

 

History

History
175 lines (138 loc) · 5.81 KB

nf-vds-ivdsvolumeplex-repair.md

File metadata and controls

175 lines (138 loc) · 5.81 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:vds.IVdsVolumePlex.Repair
IVdsVolumePlex::Repair (vds.h)
Repairs a fault-tolerant volume plex by moving bad members to good disks.
IVdsVolumePlex interface [VDS]
Repair method
IVdsVolumePlex.Repair
IVdsVolumePlex::Repair
Repair
Repair method [VDS]
Repair method [VDS]
IVdsVolumePlex interface
base.ivdsvolumeplex_repair
vds/IVdsVolumePlex::Repair
base\ivdsvolumeplex_repair.htm
base
21c91e85-8a49-4e74-9191-37aeb03b299e
12/05/2018
IVdsVolumePlex interface [VDS],Repair method, IVdsVolumePlex.Repair, IVdsVolumePlex::Repair, Repair, Repair method [VDS], Repair method [VDS],IVdsVolumePlex interface, base.ivdsvolumeplex_repair, vds/IVdsVolumePlex::Repair
vds.h
Windows
Windows Vista [desktop apps only]
Windows Server 2003 [desktop apps only]
Uuid.lib
Windows
19H1
IVdsVolumePlex::Repair
vds/IVdsVolumePlex::Repair
c++
APIRef
kbSyntax
COM
Uuid.lib
Uuid.dll
IVdsVolumePlex.Repair

IVdsVolumePlex::Repair

-description

[Beginning with Windows 8 and Windows Server 2012, the Virtual Disk Service COM interface is superseded by the Windows Storage Management API.]

Repairs a fault-tolerant volume plex by moving bad members to good disks.

-parameters

-param pInputDiskArray [in]

Pointer to an array of VDS_INPUT_DISK structures, one structure for each disk.

Note  Include only the required members of this structure (diskId and ullSize).
 
Windows Server 2003:   only volumes that are striped with parity (RAID-5) can be repaired with this method, and only one new disk can be passed to this method at a time.

-param lNumberOfDisks [in]

The total number of disks in the volume.

-param ppAsync [out]

The address of an IVdsAsync interface pointer, which VDS initializes on return. Callers must release the interface. Use this pointer to cancel, wait for, or query the status of the operation.

If you call IVdsAsync::Wait on this method and a success HRESULT value is returned, you must release the interfaces returned in the VDS_ASYNC_OUTPUT structure by calling the IUnknown::Release method on each interface pointer. However, if Wait returns a failure HRESULT value, or if the pHrResult parameter of Wait receives a failure HRESULT value, the interface pointers in the VDS_ASYNC_OUTPUT structure are NULL and do not need to be released. You can test for success or failure HRESULT values by using the SUCCEEDED and FAILED macros defined in Winerror.h.

-returns

This method can return standard HRESULT values, such as E_INVALIDARG or E_OUTOFMEMORY, and VDS-specific return values. It can also return converted system error codes using the HRESULT_FROM_WIN32 macro. Errors can originate from VDS itself or from the underlying VDS provider that is being used. Possible return values include the following.

Return code/value Description
S_OK
The repair completed successfully.
E_NOTIMPL
The caller attempted to repair the plex of a basic volume, which is always healthy and never needs repair.
VDS_E_REPAIR_VOLUMESTATE
0x80042460L
The plex or volume is not accessible. In addition, this error can be returned when the status of a plex is not one of the following: failing redundancy, failed redundancy, or failed redundancy failing.
VDS_E_DISK_IN_USE_BY_VOLUME
0x8004244CL
One or more extents of the disk are already being used by the volume.
VDS_E_VOLUME_INCOMPLETE
0x80042432L
The volume is missing one or more members or is somehow incomplete.

-see-also

IVdsAsync

IVdsAsync::Wait

IVdsVolumePlex

VDS_ASYNC_OUTPUT

VDS_INPUT_DISK