Maintainer | 2016 Evan Cofsky <evan@theunixman.com> |
---|---|
Safe Haskell | None |
Language | Haskell98 |
Propellor.Property.ZFS.Process
Description
Functions running zfs processes.
- 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.
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.