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