Safe Haskell | None |
---|---|
Language | Haskell98 |
- class PartedVal a where
- data TableType
- data PartTable = PartTable TableType [Partition]
- data Partition = Partition {}
- mkPartition :: Fs -> PartSize -> Partition
- data PartType
- newtype PartSize = MegaBytes Integer
- toPartSize :: ByteSize -> PartSize
- fromPartSize :: PartSize -> ByteSize
- reducePartSize :: PartSize -> PartSize -> PartSize
- data PartFlag
Documentation
Types of partition tables supported by parted.
A disk's partition table.
A partition on the disk.
mkPartition :: Fs -> PartSize -> Partition Source #
Makes a Partition with defaults for non-important values.
Type of a partition.
All partition sizing is done in megabytes, so that parted can automatically lay out the partitions.
Note that these are SI megabytes, not mebibytes.
toPartSize :: ByteSize -> PartSize Source #
Rounds up to the nearest MegaByte.
fromPartSize :: PartSize -> ByteSize Source #