Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
- getRootCount :: Zfs z Int
- getChildrenCount :: Zdataset z -> Zfs z Int
- getZpoolCount :: Zfs z Int
- getRoots :: Zfs z [Zdataset z]
- getChildren :: Zdataset z -> Zfs z [Zdataset z]
- getZpools :: Zfs z [Zpool z]
- forRoots :: MonadIO m => (Zdataset z -> ZfsT z IO a) -> ZfsT z m [a]
- forChildren :: MonadIO m => Zdataset z -> (Zdataset z -> ZfsT z IO a) -> ZfsT z m [a]
- forFilesystems :: MonadIO m => Zdataset z -> (Zdataset z -> ZfsT z IO a) -> ZfsT z m [a]
- forSnapshots :: MonadIO m => Zdataset z -> (Zdataset z -> ZfsT z IO a) -> ZfsT z m [a]
- forZpools :: MonadIO m => (Zpool z -> ZfsT z IO a) -> ZfsT z m [a]
- forZpools_ :: MonadIO m => (Zpool z -> ZfsT z IO ()) -> ZfsT z m ()
- forVdevs :: MonadIO m => Zpool z -> (Vdev -> ZfsT z m a) -> ZfsT z m [a]
Documentation
getRootCount :: Zfs z Int Source
Get number of root zfs
getChildrenCount :: Zdataset z -> Zfs z Int Source
Get number of child zfs
getZpoolCount :: Zfs z Int Source
Get the number of available Zpools. Less expensive than `length $ getZpools'.
getChildren :: Zdataset z -> Zfs z [Zdataset z] Source
Get all zfs children . Implemented using forChildren
.
forRoots :: MonadIO m => (Zdataset z -> ZfsT z IO a) -> ZfsT z m [a] Source
Iterate over all root zfs
forChildren :: MonadIO m => Zdataset z -> (Zdataset z -> ZfsT z IO a) -> ZfsT z m [a] Source
Iterate over all children
forFilesystems :: MonadIO m => Zdataset z -> (Zdataset z -> ZfsT z IO a) -> ZfsT z m [a] Source
Iterate over all child filesystems
forSnapshots :: MonadIO m => Zdataset z -> (Zdataset z -> ZfsT z IO a) -> ZfsT z m [a] Source
Iterate over all child zfs
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