Sindbad~EG File Manager

Current Path : /usr/lib/python3.6/site-packages/vdo/statistics/__pycache__/
Upload File :
Current File : //usr/lib/python3.6/site-packages/vdo/statistics/__pycache__/Command.cpython-36.pyc

3

x?ag��@sPdZddlmZddlmZddlmZddlmZddlZGdd�de�ZdS)	z�
  Command -- a command which is implemented as an ioctl

  $Id: //eng/vdo-releases/aluminum/src/python/vdo/statistics/Command.py#1 $
�)�absolute_import)�division)�print_function)�unicode_literalsNc@s eZdZdZdd�Zdd�ZdS)�Commandz�
  Command represents a command which may be sent to a VDO via an ioctl.
  Commands have no return data. For ioctls which fetch statistics, use
  StatStruct.
  cCs
||_dS)zH
    :param ioctl: The numeric value of the ioctl for this command.
    N)�ioctl)�selfr�r	�/usr/lib/python3.6/Command.py�__init__&szCommand.__init__c
Cs:t|d��&}tj||j�}|r,tdj|���WdQRXdS)zc
    Send the command to a device.

    :param device: The name of the device on which to act.
    �rzioctl failed with result {0}N)�open�fcntlr�	Exception�format)rZdevice�fd�resultr	r	r
�act,szCommand.actN)�__name__�
__module__�__qualname__�__doc__rrr	r	r	r
r sr)	rZ
__future__rrrrr�objectrr	r	r	r
�<module>s

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists