C# 클래스 BLL.DynamicClientPartition.ClientPartitionHelper

Calculates the minimum sizes required for various hard drives / partitions for the client imaging process
파일 보기 프로젝트 열기: cdadmin/clonedeploy 1 사용 예제들

공개 메소드들

메소드 설명
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