def execute(self, ns, device, size=None, _extended=None, _logical=None):
        device = str2device(ns, device)
        if size:
            size = str2size(size)
        ptype = None
        if _extended:
            ptype = partition.PARTITION_TYPE_EXTENDED
        elif _logical:
            ptype = partition.PARTITION_TYPE_LOGICAL
        partition.create_partition(ns, device, size, ptype)
Implementation of 'partition create' command.
dataset/ETHPy150Open openlmi/openlmi-scripts/commands/storage/lmi/scripts/storage/cmd/partition.py/PartitionCreate.execute