C# Class BLL.DynamicClientPartition.ClientPartitionHelper

Calculates the minimum sizes required for various hard drives / partitions for the client imaging process
Afficher le fichier Open project: cdadmin/clonedeploy Class Usage Examples

Méthodes publiques

Méthode Description
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.

Method Details

CheckForLvm() public méthode

public CheckForLvm ( int schemaHdNumber ) : string
schemaHdNumber int
Résultat string

ClientPartitionHelper() public méthode

public ClientPartitionHelper ( Models imageProfile ) : System
imageProfile Models
Résultat System

ExtendedPartition() public méthode

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
Résultat Models.ExtendedPartitionHelper

GetActivePartitionCount() public méthode

public GetActivePartitionCount ( int schemaHdNumber ) : int
schemaHdNumber int
Résultat int

GetActivePartitions() public méthode

public GetActivePartitions ( int schemaHdNumber, Models imageProfile ) : List
schemaHdNumber int
imageProfile Models
Résultat List

GetImageSchema() public méthode

public GetImageSchema ( ) : Models.ImageSchema.ImageSchema
Résultat Models.ImageSchema.ImageSchema

GetPartitionNumbers() public méthode

public GetPartitionNumbers ( int schemaHdNumber ) : List
schemaHdNumber int
Résultat List

HardDrive() public méthode

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
Résultat long

LogicalVolume() public méthode

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
Résultat Models.PartitionHelper

NextActiveHardDrive() public méthode

public NextActiveHardDrive ( List schemaImagedDrives, int clientHdNumber ) : int
schemaImagedDrives List
clientHdNumber int
Résultat int

Partition() public méthode

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
Résultat Models.PartitionHelper

VolumeGroup() public méthode

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
Résultat Models.ClientVolumeGroupHelper