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

Maintainer2016 Evan Cofsky <evan@theunixman.com>
Safe HaskellNone
LanguageHaskell98

Propellor.Property.ZFS.Process

Description

Functions running zfs processes.

Synopsis

Documentation

zfsGetProperties :: ZFS -> IO ZFSProperties Source #

Gets the properties of a ZFS volume.

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.