” Module for LMI_DiskPartitionConfigurationService class.
LMI_DiskPartitionConfigurationService provider implementation.
Implements LMI_DiskPartitionConfigurationService.CreateOrModifyPartition()
This method creates a new partition if the Partition parameter is null or modifies the partition specified. If the starting and ending address parameters are null, the resulting partition will occupy the entire underlying extent. If the starting address is non-null and the ending address is null, the resulting partition will extend to the end of the underlying extent.
Implements LMI_DiskPartitionConfigurationService.LMI_CreateOrModifyPartition()
Create new partition on given extent.Partition modification is not yet supported.The implementation will select the best space to fit the partition, with all alignment rules etc.
normal partition is created. If no Goal is provided and MS-DOS partition is requested and there is extended partition already on the device, a logical partition is created. If there is no extended partition on the device and there are at most two primary partitions on the device, primary partition is created. If there is no extended partition and three primary partitions already exist, new extended partition with all remaining space is created and a logical partition with requested size is created.
Keyword arguments: env – Provider Environment (pycimmb.ProviderEnvironment) object_name – A pywbem.CIMInstanceName or pywbem.CIMCLassName
specifying the object on which the method LMI_CreateOrModifyPartition() should be invoked.
Implements LMI_DiskPartitionConfigurationService.LMI_DeletePartition() Delete partition.
Implements LMI_DiskPartitionConfigurationService.SetPartitionStyle()
This method installs a partition table on an extent of the specified partition style; creating an association between the extent and that capabilities instances referenced as method parameters. As a side effect, the consumable block size of the underlying extent is reduced by the block size of the metadata reserved by the partition table and associated metadata. This size is in the PartitionTableSize property of the associated DiskPartitionConfigurationCapabilities instance.