Portability | Linux |
---|---|
Stability | experimental |
Maintainer | ongy |
Safe Haskell | Safe-Inferred |
This module allows for some support for btrfs devices. This may be renamed in the future when a general block-device module appears.
- data BtrfsHandle
- getBtrfsHandle :: String -> IO (Maybe (BtrfsHandle, [String]))
- getFSDevices :: String -> IO [String]
Documentation
:: String | The UUID of the file system to monitor |
-> IO (Maybe (BtrfsHandle, [String])) |
Try to create a btfshanlde given the UUID
This will create a BtrfsHandle
which is an instance of FsInfo and
a list of block devices that are slaves of our file system.
This allows the upper layer to monitor the read/write rates of all block devices that belong to our file system and report them as read/write rate for the file system.
Due to compression and encryption the read/write rate on the block device may be quite different to the one that application see.
getFSDevices :: String -> IO [String]Source
Get the block devices used by a btrfs FileSystem. This resolves mappers as far as possible