haskus-system-0.6.0.0: Haskus system programming framework

Safe HaskellNone
LanguageHaskell2010

Haskus.Arch.Linux.FileSystem.Mount

Description

Filesystem mount

Synopsis

Documentation

data MountFlag Source #

These are the fs-independent mount-flags: up to 32 flags are supported

Constructors

MountReadOnly

Mount read-only

MountNoSuid

Ignore suid and sgid bits

MountNoDevice

Disallow access to device special files

MountNoExec

Disallow program execution

MountSynchronous

Writes are synced at once

MountRemount

Alter flags of a mounted FS

MountMandatoryLock

Allow mandatory locks on an FS

MountSynchronousDirectory

Directory modifications are synchronous

MountReserved1 
MountReserved2 
MountNoAccessTime

Do not update access times

MountNoDirectoryAccessTime

Do not update directory access times

MountBind

Bind directory at different place

MountMove

Move a subtree (without unmounting)

MountRecursive

Recursive (loop-back) mount

MountSilent

Disable some warnings in the kernel log

MountPosixACL

VFS does not apply the umask

MountUnbindable

Change to unbindable

MountPrivate

Change to private

MountSlave

Change to slave

MountShared

Change to shared

MountRelativeAccessTime

Update atime relative to mtime/ctime

MountKernelMount

This is a kern_mount call

MountUpdateInodeVersion

Update inode I_version field

MountStrictAccessTime

Always perform atime updates

MountLazyTime

Update the on-disk [acm]times lazily

sysMount :: MonadInIO m => String -> String -> String -> MountFlags -> Ptr () -> Flow m '[(), ErrorCode] Source #

Mount a file system

sysUnmount :: MonadInIO m => String -> UnmountFlags -> Flow m '[(), ErrorCode] Source #

Unmount a file system

mountSysFS :: MonadIO m => MountCall m -> FilePath -> Flow m '[(), ErrorCode] Source #

Mount SysFS at the given location

mountDevFS :: MonadIO m => MountCall m -> FilePath -> Flow m '[(), ErrorCode] Source #

Mount DevFS at the given location

mountProcFS :: MonadIO m => MountCall m -> FilePath -> Flow m '[(), ErrorCode] Source #

Mount ProcFS at the given location

mountTmpFS :: MonadIO m => MountCall m -> FilePath -> Flow m '[(), ErrorCode] Source #

Mount TmpFS at the given location