monky-2.1.0.0: A system state collecting library and application

PortabilityLinux
Stabilityexperimental
Maintainerongy
Safe HaskellSafe-Inferred

Monky.Disk.Btrfs

Description

This module allows for some support for btrfs devices. This may be renamed in the future when a general block-device module appears.

Synopsis

Documentation

data BtrfsHandle Source

The FsInfo exported by this module

Instances

getBtrfsHandleSource

Arguments

:: 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