Current File : //usr/lib/python2.7/site-packages/vdo/statistics/Command.pyc
�
.�t_c@s,dZddlZdefd��YZdS(s�
  Command -- a command which is implemented as an ioctl

  $Id: //eng/vdo-releases/magnesium/src/python/vdo/statistics/Command.py#1 $
i����NtCommandcBs eZdZd�Zd�ZRS(s�
  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(sH
    :param ioctl: The numeric value of the ioctl for this command.
    N(tioctl(tselfR((s:/usr/lib/python2.7/site-packages/vdo/statistics/Command.pyt__init__"scCsOt|d��:}tj||j�}|rEtdj|���nWdQXdS(sc
    Send the command to a device.

    :param device: The name of the device on which to act.
    trsioctl failed with result {0}N(topentfcntlRt	Exceptiontformat(Rtdevicetfdtresult((s:/usr/lib/python2.7/site-packages/vdo/statistics/Command.pytact(s(t__name__t
__module__t__doc__RR(((s:/usr/lib/python2.7/site-packages/vdo/statistics/Command.pyRs	(RRtobjectR(((s:/usr/lib/python2.7/site-packages/vdo/statistics/Command.pyt<module>s