LMI_DiskPartitioningConfigurationService

” Module for LMI_DiskPartitionConfigurationService class.

LMI_DiskPartitionConfigurationService

class openlmi.storage.LMI_DiskPartitioningConfigurationService.LMI_DiskPartitionConfigurationService(*args, **kwargs)[source]

LMI_DiskPartitionConfigurationService provider implementation.

__init__(*args, **kwargs)[source]
cim_method_createormodifypartition(env, object_name, param_partition=None, param_devicefilename=None, param_extent=None, param_startingaddress=None, param_endingaddress=None)[source]

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.
In
contradiction to SMI-S, no LogicalDisk will be created on the partition.
If logical partition is being created, it’s start/end
sector must include space for partition metadata and any alignment sectors. ConsumableSpace of the logical partition will be reduced by these metadata and alignment sectors.
The underlying extent
MUST be associated to a capabilities class describing the installed partition style (partition table); this association is established using SetPartitionStyle().
cim_method_lmi_createormodifypartition(*args, **kwargs)[source]

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.
If no Size
parameter is provided, the largest possible partition is created.
If no Goal is provided and GPT partition is requested,

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.
param_partition – The input parameter Partition (type REF (pywbem.CIMInstanceName(classname=’CIM_GenericDiskPartition’, ...))
A reference an existing partition instance to modify or null to request a new partition.
param_goal – The input parameter Goal (type REF (pywbem.CIMInstanceName(classname=’LMI_DiskPartitionConfigurationSetting’, ...))
Setting to be applied to created/modified partition.
param_extent – The input parameter extent (type REF (pywbem.CIMInstanceName(classname=’CIM_StorageExtent’, ...))
A reference to the underlying extent the partition is base on.
param_size – The input parameter Size (type pywbem.Uint64)
Requested size of the partition to create. If null when creating a partition, the larges possible partition is created.On output, the achieved size is returned.
cim_method_lmi_deletepartition(env, object_name, param_partition=None)[source]

Implements LMI_DiskPartitionConfigurationService.LMI_DeletePartition() Delete partition.

cim_method_setpartitionstyle(*args, **kwargs)[source]

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.

Table Of Contents

Previous topic

LMI_DiskPartitionConfigurationSetting

Next topic

LMI_DiskPartition

This Page