libzfs-0.1.0.2: Bindings to libzfs, for dealing with the Z File System and Zpools.

Safe HaskellSafe
LanguageHaskell2010

System.Zfs.Mount

Synopsis

Documentation

enableDatasets :: Zpool z -> String -> Zfs z () Source

Mount all datasets in the given pool. Second argument contains mount options (TODO: this shouldn't be a string...)

disableDatasets :: Zpool z -> Bool -> Zfs z () Source

Unmount all datasets in the given pool. Second argument specifies whether to force unmounting.

unmountAll :: Zdataset z -> Zfs z () Source

Unmount this filesystem and any children inheriting the mountpoint property.

mount' :: Zdataset z -> Maybe String -> Zfs z () Source

Mount the given filesystem with custom mount options

mount :: Zdataset z -> Zfs z () Source

Mount the given filesystem with default options

remount :: Zdataset z -> Zfs z () Source

Remount the given filesystem

unmount :: Zdataset z -> Zfs z () Source

Unmount the given filesystem

tryGetMountpoint :: Zdataset z -> Zfs z (Maybe String) Source

Check if a file system is mounted and return the mountpoint if available