propellor-5.8.0: property-based host configuration management in haskell

Safe HaskellNone
LanguageHaskell98

Propellor.Property.Parted.Types

Synopsis

Documentation

class PartedVal a where Source #

Methods

pval :: a -> String Source #

Instances
PartedVal Bool Source # 
Instance details

Defined in Propellor.Property.Parted.Types

Methods

pval :: Bool -> String Source #

PartedVal Fs Source # 
Instance details

Defined in Propellor.Property.Parted.Types

Methods

pval :: Fs -> String Source #

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

data TableType Source #

Types of partition tables supported by parted.

Constructors

MSDOS 
GPT 
AIX 
AMIGA 
BSD 
DVH 
LOOP 
MAC 
PC98 
SUN 

data Partition Source #

A partition on the disk.

Constructors

Partition 

Fields

Instances
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
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 #

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
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 #