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

Safe HaskellNone
LanguageHaskell98

Propellor.Property.Partition

Synopsis

Documentation

data Fs Source #

Filesystems etc that can be used for a partition.

Constructors

EXT2 
EXT3 
EXT4 
BTRFS 
REISERFS 
XFS 
FAT 
VFAT 
NTFS 
LinuxSwap 

Instances

Eq Fs Source # 

Methods

(==) :: Fs -> Fs -> Bool

(/=) :: Fs -> Fs -> Bool

Show Fs Source # 

Methods

showsPrec :: Int -> Fs -> ShowS

show :: Fs -> String

showList :: [Fs] -> ShowS

PartedVal Fs Source # 

Methods

pval :: Fs -> String Source #

parseFs :: String -> Maybe Fs Source #

Parse commonly used names of filesystems.

formatted :: Eep -> Fs -> FilePath -> Property DebianLike Source #

Formats a partition.

type MkfsOpts = [String] Source #

Options passed to a mkfs.* command when making a filesystem.

Eg, ["-m0"]

data LoopDev Source #

Constructors

LoopDev 

Fields

Instances

Show LoopDev Source # 

Methods

showsPrec :: Int -> LoopDev -> ShowS

show :: LoopDev -> String

showList :: [LoopDev] -> ShowS

isLoopDev :: LoopDev -> IO Bool Source #

isLoopDev' :: FilePath -> IO Bool Source #

kpartx :: FilePath -> ([LoopDev] -> Property DebianLike) -> Property DebianLike Source #

Uses the kpartx utility to create device maps for partitions contained within a disk image file. The resulting loop devices are passed to the property, which can operate on them. Always cleans up after itself, by removing the device maps after the property is run.

kpartxParse :: String -> [LoopDev] Source #