Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
- getZpool :: String -> Zfs z (Zpool z)
- getZpoolName :: Zpool z -> Zfs z String
- forZpools :: MonadIO m => (Zpool z -> ZfsT z IO a) -> ZfsT z m [a]
- forZpools_ :: MonadIO m => (Zpool z -> ZfsT z IO ()) -> ZfsT z m ()
- getZpoolCount :: Zfs z Int
- defaultFeatures :: [[Char]]
- mkVdev :: Vdev -> IO NvlistPtr
- createZpool :: String -> [Vdev] -> Zfs z ()
- getZpools :: Zfs z [Zpool z]
- getZpoolConfig :: Zpool z -> Zfs z ZpoolConfig
- destroyZpool :: Zpool z -> Bool -> Zfs z ()
- getVdevs :: Zpool z -> Zfs z [Vdev]
- forVdevs :: MonadIO m => Zpool z -> (Vdev -> ZfsT z m a) -> ZfsT z m [a]
Documentation
getZpoolName :: Zpool z -> Zfs z String Source
Gets the name of some Zpool
forZpools :: MonadIO m => (Zpool z -> ZfsT z IO a) -> ZfsT z m [a] Source
Run some function for all available Zpools and return the results as a list
forZpools_ :: MonadIO m => (Zpool z -> ZfsT z IO ()) -> ZfsT z m () Source
Run some function for all available Zpools without result. Less expensive than forZpools.
getZpoolCount :: Zfs z Int Source
Get the number of available Zpools. Less expensive than `length $ getZpools'.
defaultFeatures :: [[Char]] Source
createZpool :: String -> [Vdev] -> Zfs z () Source
Create a zpool consisting of the given devices
getZpoolConfig :: Zpool z -> Zfs z ZpoolConfig Source
Get Zpool config
destroyZpool :: Zpool z -> Bool -> Zfs z () Source
Destroy a zpool. If second argument is True, unmounting is enforced.