次の方法で共有


AddDiskDrives method of the MSFT_SMPool class

Adds disk drives to a concrete pool.

Syntax

uint32 AddDiskDrives(
  [in]            String                DiskDriveObjectIds[],
  [in, optional]  String                username,
  [in, optional]  String                password,
  [out]           MSFT_SMPool       REF Pool,
  [out]           MSFT_SMJob        REF Job,
  [out, optional] MSFT_SMExtendedStatus ExtendedStatus
);

Parameters

DiskDriveObjectIds [in]

An array of strings containing ObjectIds of disk drives.

username [in, optional]

Used to authenticate with the SMI-S provider. If not provided, the storage service attempts to obtain these credentials from the configuration provider.

password [in, optional]

Used to authenticate with the SMI-S provider. If not provided, the storage service attempts to obtain these credentials from the configuration provider.

Pool [out]

Reference to the created MSFT_SMPool.

Job [out]

Reference to the MSFT_SMJob instance. May be NULL if the job is completed.

ExtendedStatus [out, optional]

An MSFT_SMExtendedStatus object containing the results of calling this method.

Return value

Job Completed with No Error (0)

Not Supported (1)

Unknown (2)

Timeout (3)

Failed (4)

Invalid Parameter (5)

In Use (6)

Method Parameters Checked - Job Started (4096)

StorageService: Unable To Wait For Job Completion (40055)

StorageService: Method invocation failed (40300)

StorageService: Concrete Pool Expansion is not supported (40813)

StorageService: Cannot expand a Primordial Pool. Only Concrete Pools can be expanded (40814)

StorageService: Provider job completed with errors (41000)

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2012
Namespace
Root\Microsoft\Windows\Storage\SM
MOF
MsftStrgMan.mof
DLL
StorageService.dll

See also

MSFT_SMPool