propellor-5.13: property-based host configuration management in haskell

Maintainer | 2016 Evan Cofsky <evan@theunixman.com>
Safe Haskell | None
Language | Haskell2010

Propellor.Property.ZFS.Process

Description

Functions running zfs processes.

Synopsis

- zfsGetProperties :: ZFS -> IO ZFSProperties
- zfsExists :: ZFS -> IO Bool
- runZfs :: String -> [Maybe String] -> ZFS -> IO [String]
- zfsCommand :: String -> [Maybe String] -> ZFS -> (String, [String])

# Documentation

zfsGetProperties :: ZFS -> IO ZFSProperties Source #

Gets the properties of a ZFS volume.

zfsExists :: ZFS -> IO Bool Source #

runZfs :: String -> [Maybe String] -> ZFS -> IO [String] Source #

Runs the zfs command with the arguments.

Runs the command with -H which will skip the header line and separate all fields with tabs.

Replaces Nothing in the argument list with the ZFS pool/dataset.

zfsCommand :: String -> [Maybe String] -> ZFS -> (String, [String]) Source #

Return the ZFS command line suitable for readProcess or cmdProperty.