mountpoints-1.0.2: list mount points
Copyright2012 Joey Hess <[email protected]>
LicenseLGPL 2.1 or higher
Safe HaskellSafe-Inferred
LanguageHaskell98

System.MountPoints

Description

Derived from hsshellscript, originally written by Volker Wysk [email protected]

Synopsis

Documentation

data Mntent Source #

This is a stripped down mntent, containing only fields available everywhere.

Constructors

Mntent 

Fields

Instances

Instances details
Show Mntent Source # 
Instance details

Defined in System.MountPoints

Eq Mntent Source # 
Instance details

Defined in System.MountPoints

Methods

(==) :: Mntent -> Mntent -> Bool #

(/=) :: Mntent -> Mntent -> Bool #

Ord Mntent Source # 
Instance details

Defined in System.MountPoints

getMounts :: IO [Mntent] Source #

Get currently mounted filesystems.

This uses eiher getmntent or getmntinfo, depending on the OS.

getProcMounts :: IO [Mntent] Source #

Read /proc/mounts to get currently mounted filesystems.

This works on Linux and related systems, including Android.