The ArcCreateHotSpare method creates one or
more Hot-Spare devices (disks).
Method1: virtual
ARC_STATUS ArcCreateHotSpare ( DWORD nDevMask, ); Method2: virtual ARC_STATUS ArcCreateHotSpare ( IN pDEVICE_LIST pDevPairList, BYTE nType = 0, WORD nRaidnum = 0 ); |
[IN]
nDevMask: The devices mask
represents the index of devices that use to create Hot-Spare devices,
Bit0 represents device0, Bit1 represents
device1….and so on.
Example: The mask of 0x00000010 means that create a Hot-Spare device in
device4.
pDevPairList: Pointer to a
sDEVICE_LIST
structure containing a list of devices
nType: Hot-Spare type
Value |
Meaning |
HOT_SPARE_GLOBAL |
Global Hot-Spare |
HOT_SPARE_LOCAL_RAID |
Local to specific
RaidSet |
HOT_SPARE_LOCAL_ENC |
Local to specific
Enclosure |
nRaidnum: RaidSet
number for type HOT_SPARE_LOCAL_RAID
This method returns the ARC_STATUS.
Password required if password enabled, use ArcChkPassword member function to
validate the password.
The
method1 is deprecated and only use for Non-SAS controller, please use the
method2 instead.