C# Класс BLL.DynamicClientPartition.ClientPartitionHelper

Calculates the minimum sizes required for various hard drives / partitions for the client imaging process
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
CheckForLvm ( int schemaHdNumber ) : string
ClientPartitionHelper ( Models imageProfile ) : System
ExtendedPartition ( int hdNumberToGet, long newHdSize ) : ExtendedPartitionHelper

Calculates the minimum block size for an extended partition by determining the minimum size of all logical partitions that fall under the extended. Does not assume that any extended partitions actually exist.

GetActivePartitionCount ( int schemaHdNumber ) : int
GetActivePartitions ( int schemaHdNumber, Models imageProfile ) : List
GetImageSchema ( ) : Models.ImageSchema.ImageSchema
GetPartitionNumbers ( int schemaHdNumber ) : List
HardDrive ( int hdNumberToGet, long newHdSize ) : long

Calculates the smallest size hard drive in Bytes that can be used to deploy the image to, based off the data usage. The newHdSize parameter is arbitrary but is used to determine if the hard being deployed to is the same size that the image was created from.

LogicalVolume ( Models lv, int lbsByte, long newHdSize, int hdNumberToGet ) : PartitionHelper

Calculates the minimum block size required for a single logical volume, assuming the logical volume cannot have any children.

NextActiveHardDrive ( List schemaImagedDrives, int clientHdNumber ) : int
Partition ( int hdNumberToGet, int partNumberToGet, long newHdSize ) : PartitionHelper

Calculates the minimum block size required for a single partition, taking into account any children partitions.

VolumeGroup ( int hdNumberToGet, int partNumberToGet, long newHdSize ) : ClientVolumeGroupHelper

Calculates the minimum block size required for a volume group by determine the size of each logical volume within the volume group. Does not assume that any volume group actually exists. Volume Groups don't really have a size, so this ends up being the size of the physical partition. I just separated it for clarity.

Описание методов

CheckForLvm() публичный Метод

public CheckForLvm ( int schemaHdNumber ) : string
schemaHdNumber int
Результат string

ClientPartitionHelper() публичный Метод

public ClientPartitionHelper ( Models imageProfile ) : System
imageProfile Models
Результат System

ExtendedPartition() публичный Метод

Calculates the minimum block size for an extended partition by determining the minimum size of all logical partitions that fall under the extended. Does not assume that any extended partitions actually exist.
public ExtendedPartition ( int hdNumberToGet, long newHdSize ) : ExtendedPartitionHelper
hdNumberToGet int
newHdSize long
Результат Models.ExtendedPartitionHelper

GetActivePartitionCount() публичный Метод

public GetActivePartitionCount ( int schemaHdNumber ) : int
schemaHdNumber int
Результат int

GetActivePartitions() публичный Метод

public GetActivePartitions ( int schemaHdNumber, Models imageProfile ) : List
schemaHdNumber int
imageProfile Models
Результат List

GetImageSchema() публичный Метод

public GetImageSchema ( ) : Models.ImageSchema.ImageSchema
Результат Models.ImageSchema.ImageSchema

GetPartitionNumbers() публичный Метод

public GetPartitionNumbers ( int schemaHdNumber ) : List
schemaHdNumber int
Результат List

HardDrive() публичный Метод

Calculates the smallest size hard drive in Bytes that can be used to deploy the image to, based off the data usage. The newHdSize parameter is arbitrary but is used to determine if the hard being deployed to is the same size that the image was created from.
public HardDrive ( int hdNumberToGet, long newHdSize ) : long
hdNumberToGet int
newHdSize long
Результат long

LogicalVolume() публичный Метод

Calculates the minimum block size required for a single logical volume, assuming the logical volume cannot have any children.
public LogicalVolume ( Models lv, int lbsByte, long newHdSize, int hdNumberToGet ) : PartitionHelper
lv Models
lbsByte int
newHdSize long
hdNumberToGet int
Результат Models.PartitionHelper

NextActiveHardDrive() публичный Метод

public NextActiveHardDrive ( List schemaImagedDrives, int clientHdNumber ) : int
schemaImagedDrives List
clientHdNumber int
Результат int

Partition() публичный Метод

Calculates the minimum block size required for a single partition, taking into account any children partitions.
public Partition ( int hdNumberToGet, int partNumberToGet, long newHdSize ) : PartitionHelper
hdNumberToGet int
partNumberToGet int
newHdSize long
Результат Models.PartitionHelper

VolumeGroup() публичный Метод

Calculates the minimum block size required for a volume group by determine the size of each logical volume within the volume group. Does not assume that any volume group actually exists. Volume Groups don't really have a size, so this ends up being the size of the physical partition. I just separated it for clarity.
public VolumeGroup ( int hdNumberToGet, int partNumberToGet, long newHdSize ) : ClientVolumeGroupHelper
hdNumberToGet int
partNumberToGet int
newHdSize long
Результат Models.ClientVolumeGroupHelper