관리-도구
편집 파일: simarray.pyc
� .�P`c @ s d d l Z d d l Z d d l Z d d l Z d d l Z d d l m Z d d l m Z m Z m Z m Z m Z m Z m Z m Z m Z m Z m Z m Z m Z m Z m Z d � Z d � Z d � Z d e f d � � YZ d e f d � � YZ d e f d � � YZ d S( i����N( t size_human_2_size_bytes( t Systemt Volumet Diskt Poolt FileSystemt AccessGroupt FsSnapshott NfsExportt md5t LsmErrort TargetPortt ErrorNumbert JobStatust Batteryt int_divc s � f d � } | S( Nc si y � | | � SWnQt j k r� } t | d � t k rc t | d d � rc | d j j � n t | � d k r� t t j d � � n t t j d t | � � � n� t k r� t | d � t k r� t | d d � r� | d j j � n � nl t k rd} t | d � t k rEt | d d � rE| d j j � n t t j d t | � � � n Xd S( Ni t bs_objs database is lockeds% Timeout to require lock on state files% Got unexpected error from sqlite3: %ss Got unexpected error: %s( t sqlite3t OperationalErrort typet SimArrayt hasattrR t trans_rollbackt strR R t TIMEOUTt PLUGIN_BUGt Exception( t argst kargst sql_errort base_error( t method( s; /usr/lib/python2.7/site-packages/lsm/plugin/sim/simarray.pyt wrapper s, ) ))( ( R R ( ( R s; /usr/lib/python2.7/site-packages/lsm/plugin/sim/simarray.pyt _handle_errors s c C sS d g } x: t d d � D]) } | j t d t j d d � � � q Wd j | � S( s. Generate a random VPD83 NAA_Type3 ID t 50i i s %02xi� t ( t ranget appendR t randomt randintt join( t vpdt _( ( s; /usr/lib/python2.7/site-packages/lsm/plugin/sim/simarray.pyt _random_vpd: s 'c C s<