Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Propellor.Property.Partition
Synopsis
- data Fs
- parseFs :: String -> Maybe Fs
- data Eep = YesReallyFormatPartition
- formatted :: Eep -> Fs -> FilePath -> Property DebianLike
- type MkfsOpts = [String]
- formatted' :: MkfsOpts -> Eep -> Fs -> FilePath -> Property DebianLike
- data LoopDev = LoopDev {}
- isLoopDev :: LoopDev -> IO Bool
- isLoopDev' :: FilePath -> IO Bool
- kpartx :: FilePath -> ([LoopDev] -> Property DebianLike) -> Property DebianLike
- kpartxParse :: String -> [LoopDev]
Documentation
Filesystems etc that can be used for a partition.
Constructors
YesReallyFormatPartition |
type MkfsOpts = [String] Source #
Options passed to a mkfs.* command when making a filesystem.
Eg, ["-m0"]
formatted' :: MkfsOpts -> Eep -> Fs -> FilePath -> Property DebianLike Source #
Constructors
LoopDev | |
Fields
|
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 #