Sindbad~EG File Manager

Current Path : /lib/python3.6/site-packages/vdo/vdomgmnt/__pycache__/
Upload File :
Current File : //lib/python3.6/site-packages/vdo/vdomgmnt/__pycache__/Constants.cpython-36.pyc

3

x?ag��@sZdZddlmZddlmZddlmZddlmZddlZejd�Gdd	�d	e�Z	dS)
zs
  Constants - manage VDO constants.

  $Id: //eng/vdo-releases/aluminum/src/python/vdo/vdomgmnt/Constants.py#1 $

�)�absolute_import)�division)�print_function)�unicode_literalsNZvdomgmntc@s6eZdZdZdZdZdZedd�edd��\Z	Z
ZZZ
Zd	Zd
ZdZdZd
ZdZdZdZeZdZeeeeeeegZeeede	e
eee
eg��Zeeeed�ed�ed�ed�ed�ed�ed�g��ZegeZeeiZ e j!e�eed�iZ"e"j!e�dZ#dZ$e#e$gZ%dZ&dZ'dZ(dZ)Gd d!�d!�Z*e+d"d#��Z,d$S)%�	Constantsz"Constants manages constant values.z
/var/lock/vdoiicCsdd|S)N��
�)�xr	r	�/usr/lib/python3.6/Constants.py�<lambda>&szConstants.<lambda>���b�k�m�g�t�p�e�sZ	megabyteszB(ytes)zK(ilobytes)zM(egabytes)zG(igabytes)zT(erabytes)zP(etabytes)z
E(xabytes)z	S(ectors)�disabled�enabled��errorZonlineZopeningc@s$eZdZdZdZdZdZdZdZdS)zConstants.dmsetupStatusFieldsr
����rN)	�__name__�
__module__�__qualname__ZsectorCountZ
storageDeviceZ	modeStateZ
inRecoveryZdeduplicationStatusZcompressionStatusr	r	r	r�dmsetupStatusFieldsQsr"cCs|r
|jS|jS)N)rr)�cls�valuer	r	r�enableStringYszConstants.enableStringN)-rr r!�__doc__ZLOCK_DIRZSECTOR_SIZEZVDO_BLOCK_SIZE�map�rangeZKBZMBZGBZTBZPBZEBZ
lvmByteSuffixZ
lvmKiloSuffixZ
lvmMegaSuffixZ
lvmGigaSuffixZ
lvmTeraSuffixZ
lvmPetaSuffixZlvmExaSuffixZlvmSectorSuffixZlvmDefaultSuffixZlvmDefaultUnitsTextZ
lvmSiSuffixes�dict�zipZlvmSiSuffixSizeMap�_ZlvmSiSuffixTextMapZlvmSuffixesZlvmSuffixSizeMap�updateZlvmSuffixTextMaprrZ
enableChoicesZDEDUPLICATION_TIMEOUTZdeduplicationStatusErrorZdeduplicationStatusOnlineZdeduplicationStatusOpeningr"�classmethodr%r	r	r	rr!sP 



r)
r&Z
__future__rrrr�gettextZinstall�objectrr	r	r	r�<module>s


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