[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@3.145.39.183: ~ $
�
�v_c@s�ddlZddlZddlZddlmZddlZddlmZyrddlZej�Z	e	j
�dZ	e	j
d�dZ	eee
e	j
d���Z	e	dkr�dZnWndZdZ	nXedk	r
dd	lmZd
efd��YZndZd�Zd
�Zd�Zd�Zd�Zdd�Zd�Zd�Zd�Zd�Zdefd��YZdS(i����N(tdatetime(t_it(t.iic(tLibLVMErrort_ResultErrorcBseZdZRS(s>Exception raised for LVM calls resulting in bad return values.(t__name__t
__module__t__doc__(((s3/usr/lib/python2.7/site-packages/yum/fssnapshots.pyRscCs,|j�}|dsdS|dddkS(NitotO(R	R
(tgetAttrtNone(tlvtsnap((s3/usr/lib/python2.7/site-packages/yum/fssnapshots.pyt
_is_origin%s
cCs,|j�}|dsdS|dddkS(NitstS(RR(RR(R
R((s3/usr/lib/python2.7/site-packages/yum/fssnapshots.pyt_is_snap,s
cCs,|j�}|dsdS|dddkS(Nitv(RR(R
R((s3/usr/lib/python2.7/site-packages/yum/fssnapshots.pyt_is_virt3s
cCs y|j|�SWndSXdS(N(t
lvFromNameR(tvgtlvname((s3/usr/lib/python2.7/site-packages/yum/fssnapshots.pyt_vg_name2lv:scCsytj�}Wntk
r)g}nX|stjddddgdtjdtj�}|j�}|r�ttd���n|j	�d}|j
d	�}|s�gS|dj�}|d
kr�gSg}x2|dD]#}|s�Pn|j|j��q�Wn|S(Ns	/sbin/lvmtvgss-otvg_nametstdouttstderrs#Failed to obtain volume group namesis
tVGi(
tlvmtlistVgNamesRt
subprocesstPopentPIPEtwaitRRtcommunicatetsplittstriptappend(tnamestpterrtoutputtheadertname((s3/usr/lib/python2.7/site-packages/yum/fssnapshots.pyt_list_vg_names@s.

cCs�t|�dkr�t|dd!�d}|t|dd!�7}|d9}|ddkrg||8}n|ddkr�||7}q�n|S(Niiii<it+t-(tlentint(tztctimetoff((s3/usr/lib/python2.7/site-packages/yum/fssnapshots.pyt_z_off]s

cCs�y�|j�\}}}tj|d|d�}tj|�}tr�tjd�}||kr�t|�}t|�}|||7}q�nWn
d}nX|S(Nt s%Y-%m-%d %H:%M:%Ss%zi(R%ttimetstrptimetmktimetFalsetstrftimeR6(R4tdttR3tcur_z((s3/usr/lib/python2.7/site-packages/yum/fssnapshots.pyt
_lv_ctime2utchs
c
Cs�|j�}|j�}|j�}|jd�d}|j�}t|jd�d�}|jd�d}t|�}|d}id||fd6|d	6|d6d||fd
6|j�d6|d6|d
6|d6}	|	S(Ntoriginitlv_timetsnap_percentii�s%s/%stdevR4t
origin_devtfreettagstsizetusedi�i@B(tgetNametgetSizetgetPropertytgetTagsR@tfloattgetFreeSize(
RR
tvgnameRRHRARGR4RItdata((s3/usr/lib/python2.7/site-packages/yum/fssnapshots.pyt_lv_data{s$


cs�fd�}|S(s7Decorator for _FSSnap methods that logs LVM tracebacks.csSy�|||�SWn8tk
rN}|jdk	rH|jj|�n�nXdS(N(Rt_loggerRt	exception(tselftargstkwargste(tfunc(s3/usr/lib/python2.7/site-packages/yum/fssnapshots.pytwrap�s((RYRZ((RYs3/usr/lib/python2.7/site-packages/yum/fssnapshots.pyt_log_traceback�scCs@t|�tkr2t|j�dkr2|jdSt|�SdS(s;Convert a LibLVMError instance to a readable error message.iiN(ttypeRR1RVtstr(texc((s3/usr/lib/python2.7/site-packages/yum/fssnapshots.pyt
lvmerr2str�s't_FSSnapcBs�eZdedd
d�Zed��Zd
d�Zedd��Z	eddd
id	��Z
ed
��Zegd��ZRS(t/s!*/swaps
!*/lv_swapcCs�tstj�rg}nt|_tto=tjjd��|_d|_	d|_||_||_
d|_||_|j
s�dSdS(Ns	/sbin/lvmt_yum_(Rtostgeteuidt_vertversiontbooltpathtexistst	availabletpostfix_staticRt_postfixt_roott_devst_vgname_listRS(RUtroott
lookup_mountstdevicestlogger((s3/usr/lib/python2.7/site-packages/yum/fssnapshots.pyt__init__�s		!							cCs4|jdkr-|jr!t�ng|_n|jS(N(RoRRjR.(RU((s3/usr/lib/python2.7/site-packages/yum/fssnapshots.pyt_vgnames�sc	Cs|dk	r+t|�s$t|�r+tSnt}x�|jD]�}d|krSq;nt}|ddkr�t}t}|d}n|jdd�\}}d|kr�q;ntj||�s�q;n|dkr�|S|dkr�dS|j�}tj||�s	q;n|SW|S(NRait!it*(	RRRR;RntTrueR%tfnmatchRJ(	RURPR
t	found_negRDtnegtvgntlvnR((s3/usr/lib/python2.7/site-packages/yum/fssnapshots.pyt_use_dev�s4
idc	Cs�t}x�|jD]�}|j|�}|dk	r>|r>qntj|d�}|sottd�|��n|j�}d}x<|j	�D].}|j||�s�q�n||j
�7}q�W|j�|s�qnt}||d|krtSqW|S(s0 See if we have enough space to try a snapshot. trs(Unknown error when opening volume group iidN(
R;RuR~RRtvgOpenRRROtlistLVsRKtcloseRx(	RUt
percentagetretRPtuseRtvgfsizetlvssizeR
((s3/usr/lib/python2.7/site-packages/yum/fssnapshots.pyt	has_space�s,
tcCs|dkr1d|jtj�jd�f}ng}x�|jD]�}|j|�}|dk	ro|roqAntj|d�}|s�t	t
d�|��nxZ|j�D]L}	|	j�}
|j||	�s�q�nd||
|f}|	j
||	j�|d�}|s3|j�t	t
d�|��nd||
f}
d||f}t�}x�||
d	fD]v}xm|j|g�D]Y}d
|kr�|jd
d�\}}||kr�q�n|j|�n|j|�q�WqlW|j|
|f�q�W|j�qAW|S(
sc Attempt to take a snapshot, note that errors can happen after
            this function succeeds. s%s%ss%Y%m%d%H%M%S.%ftws(Unknown error when opening volume group s%s%s%sids%Unknown error when creating snapshot s%s/%sRwt=iN(RRkRtnowR<RuR~RR�RRR�RJtsnapshotRKR�tsettgetR%taddtaddTagR'(RUR�tprefixtpostfixRGR�RPR�RR
Rtnlvnametnlvtodevtndevteq_tagstvalttagt
eq_tag_keyt
eq_tag_val((s3/usr/lib/python2.7/site-packages/yum/fssnapshots.pyR�sF% 
	cCs�g}x�|jD]�}tj|d�}|sGttd�|��nx<|j�D].}t|�slqTn|jt||��qTW|j	�qW|S(s List data for old snapshots. R�s(Unknown error when opening volume group (
RuRR�RRR�RR'RRR�(RUR�RPRR
((s3/usr/lib/python2.7/site-packages/yum/fssnapshots.pyt
old_snapshotsFsc	Cs!ts
gSg}i}xV|D]N}|jd�\}}||krZt|g�||<q||j|�qWx�|D]�}tj|d�}|s�ttd�|��nx_||D]S}t||�}|s�q�nt|�s�q�n|j	t
||��|j�q�W|j�qvW|S(s Remove snapshots. RaR�s(Unknown error when opening volume group (
RR%R�R�R�RRRRR'RRtremoveR�(	RURrR�ttogoRDRPRRR
((s3/usr/lib/python2.7/site-packages/yum/fssnapshots.pyt
del_snapshots^s0

(s!*/swaps
!*/lv_swapN(
RRRxRRttpropertyRuR~R[R�R�R�R�(((s3/usr/lib/python2.7/site-packages/yum/fssnapshots.pyR`�s'#4(iiic(RcRyR8RR tyumRRt
getVersionReR%ttupletmapR2RRRRRRRR.R6R@RRR[R_tobjectR`(((s3/usr/lib/python2.7/site-packages/yum/fssnapshots.pyt<module>s>

										

Filemanager

Name Type Size Permission Actions
Errors.py File 4.26 KB 0755
Errors.pyc File 9.08 KB 0644
__init__.py File 304.1 KB 0755
__init__.pyc File 199.78 KB 0644
callbacks.py File 5.64 KB 0755
callbacks.pyc File 6.23 KB 0644
comps.py File 31.59 KB 0755
comps.pyc File 26.87 KB 0644
config.py File 49.89 KB 0755
config.pyc File 48.02 KB 0644
constants.py File 4.52 KB 0755
constants.pyc File 3.42 KB 0644
depsolve.py File 74.05 KB 0755
depsolve.pyc File 46.91 KB 0644
drpm.py File 12.85 KB 0755
drpm.pyc File 10.83 KB 0644
failover.py File 5 KB 0755
failover.pyc File 5.24 KB 0644
fssnapshots.py File 10.16 KB 0755
fssnapshots.pyc File 9.75 KB 0644
history.py File 61.13 KB 0755
history.pyc File 53.31 KB 0644
i18n.py File 20.44 KB 0755
i18n.pyc File 16.05 KB 0644
igroups.py File 9.31 KB 0755
igroups.pyc File 10.22 KB 0644
logginglevels.py File 7.9 KB 0755
logginglevels.pyc File 6.51 KB 0644
mdparser.py File 6.26 KB 0755
mdparser.pyc File 7.58 KB 0644
metalink.py File 9.19 KB 0755
metalink.pyc File 8.84 KB 0644
misc.py File 39.57 KB 0755
misc.pyc File 39.58 KB 0644
packageSack.py File 40.79 KB 0755
packageSack.pyc File 41.88 KB 0644
packages.py File 84.1 KB 0755
packages.pyc File 84.51 KB 0644
parser.py File 7.97 KB 0755
parser.pyc File 6.5 KB 0644
pgpmsg.py File 53.5 KB 0755
pgpmsg.pyc File 38.27 KB 0644
pkgtag_db.py File 4.86 KB 0755
pkgtag_db.pyc File 5.06 KB 0644
plugins.py File 28.1 KB 0755
plugins.pyc File 29.1 KB 0644
repoMDObject.py File 11.23 KB 0755
repoMDObject.pyc File 9.17 KB 0644
repos.py File 16.53 KB 0755
repos.pyc File 17.38 KB 0644
rpmsack.py File 70.25 KB 0755
rpmsack.pyc File 58.36 KB 0644
rpmtrans.py File 24.84 KB 0755
rpmtrans.pyc File 22.54 KB 0644
sqlitesack.py File 69.76 KB 0755
sqlitesack.pyc File 53.75 KB 0644
sqlutils.py File 6.27 KB 0755
sqlutils.pyc File 5.6 KB 0644
transactioninfo.py File 33.78 KB 0755
transactioninfo.pyc File 30.29 KB 0644
update_md.py File 25.9 KB 0755
update_md.pyc File 21.72 KB 0644
updateinfo.py File 18.29 KB 0755
updateinfo.pyc File 16.36 KB 0644
yumRepo.py File 83.85 KB 0755
yumRepo.pyc File 64.83 KB 0644