monky-2.0.0.0: A system state collecting library and application

Maintainermoepi
Stabilityexperimental
PortabilityLinux
Safe HaskellNone
LanguageHaskell2010

Monky.Disk

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 DiskHandle #

The handle xported by this module A disk may have multiple physical devices so we use lists for them

getDiskReadWrite :: DiskHandle -> IO (Int, Int) #

Get the read write rates from the disk (in bytes/s)

getDiskFree :: DiskHandle -> IO Int #

Get the space left on the disk

getDiskHandle :: String -> IO DiskHandle #

Get the disk handle