mount-0.1: Mounts and umounts filesystems

Safe HaskellNone

System.Linux.Mount

Contents

Description

This module provides an interface to the system mount and umount functions.

Synopsis

Bindings to system functions

mountSource

Arguments

:: String

device file

-> FilePath

mount point

-> String

filesystem type

-> [MountFlag]

list of mount options

-> DriverData

driver specific options

-> IO () 

Mounts a filesystem.

umountSource

Arguments

:: String

mount point

-> IO () 

Umounts a filesystem.

umountWithSource

Arguments

:: UmountFlag

umount options

-> String

mount point

-> IO () 

Umounts a filesystem using specific umount options.

forceUmountSource

Arguments

:: String

mount point

-> IO () 

Forces the filesystem umount (forceUmount str = umountWith umntForce str).

MountFlag

data MountFlag Source

MountFlag specifies the filesystem independent options to be used when mounting a filesystem

Constructors

DriverData

data DriverData Source

DriverData specifies the filesystem dependent options to be used when mounting a filesystem; the content of DriverData is passed directly to the filesystem driver.

Constructors

UmountFlag

data UmountFlag Source

UmountFlag specifies the filesystem independent options to be used when umounting a filesystem

Constructors