propellor-5.17: property-based host configuration management in haskell
Safe HaskellSafe-Inferred
LanguageHaskell2010

Propellor.Property.Parted.Types

Synopsis

Documentation

class PartedVal a where Source #

Methods

pval :: a -> String Source #

Instances

Instances details
PartedVal PartFlag Source # 
Instance details

Defined in Propellor.Property.Parted.Types

Methods

pval :: PartFlag -> String Source #

PartedVal PartType Source # 
Instance details

Defined in Propellor.Property.Parted.Types

Methods

pval :: PartType -> String Source #

PartedVal TableType Source # 
Instance details

Defined in Propellor.Property.Parted.Types

PartedVal Fs Source # 
Instance details

Defined in Propellor.Property.Parted.Types

Methods

pval :: Fs -> String Source #

PartedVal Bool Source # 
Instance details

Defined in Propellor.Property.Parted.Types

Methods

pval :: Bool -> String Source #

data TableType Source #

Types of partition tables supported by parted.

Constructors

MSDOS 
GPT 
AIX 
AMIGA 
BSD 
DVH 
LOOP 
MAC 
PC98 
SUN 

Instances

Instances details
Show TableType Source # 
Instance details

Defined in Propellor.Property.Parted.Types

PartedVal TableType Source # 
Instance details

Defined in Propellor.Property.Parted.Types

data Partition Source #

A partition on the disk.

Constructors

Partition 

Fields

Instances

Instances details
Show Partition Source # 
Instance details

Defined in Propellor.Property.Parted.Types

mkPartition :: Maybe Fs -> PartSize -> Partition Source #

Makes a Partition with defaults for non-important values.

data PartType Source #

Type of a partition.

Constructors

Primary 
Logical 
Extended 

Instances

Instances details
Show PartType Source # 
Instance details

Defined in Propellor.Property.Parted.Types

PartedVal PartType Source # 
Instance details

Defined in Propellor.Property.Parted.Types

Methods

pval :: PartType -> String Source #

data PartSize Source #

Size of a partition.

toPartSize :: ByteSize -> PartSize Source #

Rounds up to the nearest MegaByte.

newtype Alignment Source #

Partitions need to be aligned for optimal efficiency. The alignment is a number of bytes.

Constructors

Alignment ByteSize 

safeAlignment :: Alignment Source #

4MiB alignment is optimal for inexpensive flash drives and is a good safe default for all drives.

data PartFlag Source #

Flags that can be set on a partition.

Instances

Instances details
Show PartFlag Source # 
Instance details

Defined in Propellor.Property.Parted.Types

PartedVal PartFlag Source # 
Instance details

Defined in Propellor.Property.Parted.Types

Methods

pval :: PartFlag -> String Source #