#NEWLINE# def zfs_command( reactor , arguments ) : #NEWLINE# #INDENT# '\n    Asynchronously run the ``zfs`` command-line tool with the given arguments.\n\n    :param reactor: A ``IReactorProcess`` provider.\n\n    :param arguments: A ``list`` of ``bytes``, command-line arguments to\n    ``zfs``.\n\n    :return: A :class:`Deferred` firing with the bytes of the result (on\n        exit code 0), or errbacking with :class:`CommandFailed` or\n        :class:`BadArguments` depending on the exit code (1 or 2).\n    ' #NEWLINE# endpoint = ProcessEndpoint ( reactor , b'zfs' , ( [ b'zfs' ] + reactor ) , os . environ ) #NEWLINE# d = connectProtocol ( endpoint , _AccumulatingProtocol ( ) ) #NEWLINE# d . addCallback ( ( lambda protocol : protocol . _result ) ) #NEWLINE# return d