Safe Haskell | None |
---|---|
Language | Haskell98 |
- class PartedVal a where
- data TableType
- data PartTable = PartTable TableType Alignment [Partition]
- data Partition = Partition {}
- mkPartition :: Maybe Fs -> PartSize -> Partition
- data PartType
- data PartSize
- toPartSize :: ByteSize -> PartSize
- toPartSize' :: (Double -> Integer) -> ByteSize -> PartSize
- fromPartSize :: PartSize -> ByteSize
- reducePartSize :: PartSize -> PartSize -> PartSize
- newtype Alignment = Alignment ByteSize
- safeAlignment :: Alignment
- fromAlignment :: Alignment -> ByteSize
- data PartFlag
Documentation
Types of partition tables supported by parted.
A disk's partition table.
A partition on the disk.
mkPartition :: Maybe Fs -> PartSize -> Partition Source #
Makes a Partition with defaults for non-important values.
Type of a partition.
Size of a partition.
toPartSize :: ByteSize -> PartSize Source #
Rounds up to the nearest MegaByte.
fromPartSize :: PartSize -> ByteSize Source #
Partitions need to be aligned for optimal efficiency. The alignment is a number of bytes.
safeAlignment :: Alignment Source #
4MiB alignment is optimal for inexpensive flash drives and is a good safe default for all drives.
fromAlignment :: Alignment -> ByteSize Source #