Safe Haskell | None |
---|---|
Language | Haskell98 |
Partition specification combinators.
- type PartSpec t = (Maybe MountPoint, MountOpts, PartSize -> Partition, t)
- partition :: Monoid t => Fs -> PartSpec t
- swapPartition :: Monoid t => PartSize -> PartSpec t
- mountedAt :: PartSpec t -> FilePath -> PartSpec t
- setSize :: PartSpec t -> PartSize -> PartSpec t
- mountOpt :: ToMountOpts o => PartSpec t -> o -> PartSpec t
- errorReadonly :: MountOpts
- reservedSpacePercentage :: PartSpec t -> Int -> PartSpec t
- setFlag :: PartSpec t -> PartFlag -> PartSpec t
- extended :: PartSpec t -> PartSpec t
- adjustp :: PartSpec t -> (Partition -> Partition) -> PartSpec t
- adjustt :: PartSpec t -> (t -> t) -> PartSpec t
- defSz :: PartSize
Documentation
type PartSpec t = (Maybe MountPoint, MountOpts, PartSize -> Partition, t) Source #
Specifies a mount point, mount options, and a constructor for a Partition that determines its size.
partition :: Monoid t => Fs -> PartSpec t Source #
Specifies a partition with a given filesystem.
The partition is not mounted anywhere by default; use the combinators below to configure it.
swapPartition :: Monoid t => PartSize -> PartSpec t Source #
Specifies a swap partition of a given size.
mountOpt :: ToMountOpts o => PartSpec t -> o -> PartSpec t Source #
Specifies a mount option, such as "noexec"
errorReadonly :: MountOpts Source #
Mount option to make a partition be remounted readonly when there's an error accessing it.
reservedSpacePercentage :: PartSpec t -> Int -> PartSpec t Source #
Sets the percent of the filesystem blocks reserved for the super-user.
The default is 5% for ext2 and ext4. Some filesystems may not support this.