NineSec Team Shell
Server IP : 184.107.3.203  /  Your IP : 216.73.216.51
Web Server : Apache
System : Linux dedicated2.avenfashion.com.ph 4.18.0-553.40.1.el8_10.x86_64 #1 SMP Mon Feb 10 12:11:18 EST 2025 x86_64
User : adminteladeoro ( 1015)
PHP Version : 8.2.28
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /usr/lib/python3.6/site-packages/vdo/statistics/__pycache__/

[  Home  ][  C0mmand  ][  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

NineSec Team - 2022