Maintainer | moepi |
---|---|
Stability | experimental |
Portability | Linux |
Safe Haskell | None |
Language | Haskell2010 |
This module allows for some support for btrfs devices. This may be renamed in the future when a general block-device module appears.
- data DiskHandle
- getDiskReadWrite :: DiskHandle -> IO (Int, Int)
- getDiskFree :: DiskHandle -> IO Integer
- getDiskHandle :: String -> IO DiskHandle
- getDiskHandleTag :: String -> String -> IO DiskHandle
Documentation
data DiskHandle Source #
The handle xported by this module A disk may have multiple physical devices so we use lists for them
getDiskReadWrite :: DiskHandle -> IO (Int, Int) Source #
Get the read write rates from the disk (in bytes/s)
getDiskFree :: DiskHandle -> IO Integer Source #
Get the space left on the disk
getDiskHandle :: String -> IO DiskHandle Source #
Get a disk handle from uuid. This special-cases btrfs.
getDiskHandleTag :: String -> String -> IO DiskHandle Source #
Get the disk handle from a user chosen blkid tag.