def zfs_command(reactor, arguments):
    endpoint = ProcessEndpoint(reactor, b"zfs", [b"zfs"] + arguments,
                               os.environ)
    d = connectProtocol(endpoint, _AccumulatingProtocol())
    d.addCallback(lambda protocol: protocol._result)
    return d
Asynchronously run the ``zfs`` command-line tool with the given arguments.
dataset/ETHPy150Open ClusterHQ/flocker/flocker/volume/filesystems/zfs.py/zfs_command