403Webshell
Server IP : 182.53.201.61  /  Your IP : 216.73.217.175
Web Server : Apache/2.2.15 (Fedora)
System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/system-config-lvm/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/system-config-lvm//CommandHandler.pyc
Ñò
=®Jc	@sŒddkZddkZddklZddklZlZlZlZlZl	Z	ddk
TddkZeiZddd„ƒYZ
dS(iÿÿÿÿN(tCommandError(texecWithCapturetexecWithCaptureErrorStatustexecWithCaptureStatustexecWithCaptureProgresst"execWithCaptureErrorStatusProgresstexecWithCaptureStatusProgress(t*tCommandHandlercBsþeZd„Zgd„Zed„Zed„Zd„Zd„Zgd„Z	d„Z
d„Zd	„Zd
„Z
ed„Zd„Zd
„Zd„Zd„Zd„Zd„Zed„Zed„Zd„Zd„Zd„Zd„Zd„ZRS(cCsdS(N((tself((s./usr/share/system-config-lvm/CommandHandler.pyt__init__scCsRtƒ}|itƒ|idƒ|t}|i|ƒ|ttjo(|idƒ|it|tƒƒnž|idƒ|ttjo|it|tƒdƒna|tt	jo|it|tƒdƒn1|tt
jo|it|tƒdƒn|to"|idƒ|i|tƒn‘|t
o|idƒn|ttjoL|id	ƒ|it|tƒƒ|id
ƒ|it|tƒƒn|t}|i|ƒx!|D]}|i|iƒƒqÔWdi|ƒ}tt|tdƒƒ\}}	}
|
d
jo tdtd||	fƒ‚ndS(Ns-ns-ls-Ltktmtgs-ss-m1s-is-It sCreating Logical VolumeitFATALtlvcreate(tlisttappendtLVCREATE_BIN_PATHtNEW_LV_NAME_ARGtNEW_LV_UNIT_ARGt
EXTENT_IDXtstrtNEW_LV_SIZE_ARGtKILOBYTE_IDXtMEGABYTE_IDXtGIGABYTE_IDXtNEW_LV_SNAPSHOTtNEW_LV_SNAPSHOT_ORIGINtNEW_LV_MIRRORINGtNEW_LV_IS_STRIPED_ARGtTruetNEW_LV_NUM_STRIPES_ARGtNEW_LV_STRIPE_SIZE_ARGtNEW_LV_VGNAME_ARGtget_pathtjoinRt_RtCOMMAND_FAILURE(R	t
cmd_args_dicttpvlisttarglisttlvnametvgnametpvtcmd_strt
result_stringterrtres((s./usr/share/system-config-lvm/CommandHandler.pytnew_lvsF	










	
c	Cs
tƒ}|itƒ|idƒ|idƒ|o|idƒn|idƒ|idƒ|it|ƒƒ|i|ƒdi|ƒ}|o#tt|ƒ\}}}|djStt|tdƒƒ\}}}|djo td	t	d
||fƒ‚ndS(Ns--configs'log{command_names=0}'s--tests-fs-lRisResizing Logical VolumeRtlvresize(
RRtLVREDUCE_BIN_PATHRR%RRR&RR'(	R	tlvpathtnew_size_extentsttesttcmd_argstcmdstrtoutR0R1((s./usr/share/system-config-lvm/CommandHandler.pyt	reduce_lv;s$	





	
c	Cstƒ}|itƒ|idƒ|idƒ|o|idƒn|idƒ|it|ƒƒ|i|ƒdi|ƒ}|o#tt|ƒ\}}}|djStt|tdƒƒ\}}}|djo tdt	d	||fƒ‚ndS(
Ns--configs'log{command_names=0}'s--tests-lRisResizing Logical VolumeRR3(
RRtLVEXTEND_BIN_PATHRR%RRR&RR'(	R	R5R6R7R8R9R:R0R1((s./usr/share/system-config-lvm/CommandHandler.pyt	extend_lvPs"	




	
cCs¢tƒ}|itƒ|idƒ|idƒ|idƒ|i|ƒdi|ƒ}tt|ƒ\}}}|djo tdtd||fƒ‚ndS(Ns--configs'log{command_names=0}'s-ayRiRtlvchange(RRtLVCHANGE_BIN_PATHR%RRR'(R	R5R8R9R:R0R1((s./usr/share/system-config-lvm/CommandHandler.pytactivate_lvcs	





cCs¢tƒ}|itƒ|idƒ|idƒ|idƒ|i|ƒdi|ƒ}tt|ƒ\}}}|djo tdtd||fƒ‚ndS(Ns--configs'log{command_names=0}'s-anRiRR>(RRR?R%RRR'(R	R5R8R9R:R0R1((s./usr/share/system-config-lvm/CommandHandler.pyt
deactivate_lvos	





c	CsÏtƒ}|itƒ|idƒ|idƒ|idƒ|i|ƒx!|D]}|i|iƒƒqQWdi|ƒ}tt|tdƒƒ\}}}|djo tdtd||fƒ‚ndS(	Ns--configs'log{command_names=0}'s-m1RsAdding Mirror to Logical VolumeiRt	lvconvert(	RRtLVCONVERT_BIN_PATHR$R%RR&RR'(	R	R5R)R8R-R9R:R0R1((s./usr/share/system-config-lvm/CommandHandler.pyt
add_mirroring{s	




	
cCs«tƒ}|itƒ|idƒ|idƒ|idƒ|i|ƒdi|ƒ}tt|tdƒƒ\}}}|djo tdtd||fƒ‚ndS(	Ns--configs'log{command_names=0}'s-m0Rs#Removing Mirror from Logical VolumeiRRB(RRRCR%RR&RR'(R	R5R8R9R:R0R1((s./usr/share/system-config-lvm/CommandHandler.pytremove_mirroringŠs	




	
c	Cs¢tƒ}|idƒ|idƒ|i|ƒ|i|ƒ|i|ƒdi|ƒ}td|ƒ\}}}|djo tdtd||fƒ‚ndS(Ns
/bin/mounts-tRiRtmount(RRR%RRR'(	R	tdev_patht	mnt_pointtfstypeR8R9R:R0R1((s./usr/share/system-config-lvm/CommandHandler.pyRF—s	





cCsª|iƒ}tƒ}|itƒ|idƒ|idƒ|i|ƒdi|ƒ}tt|tdƒƒ\}}}|djo tdtd||fƒ‚ndS(Ns-Mt2RsInitializing Physical VolumeiRtpvcreate(	tstripRRtPVCREATE_BIN_PATHR%RR&RR'(R	tenttentitytcommand_argst
commandstringR:R0R1((s./usr/share/system-config-lvm/CommandHandler.pytinitialize_entity£s	



	
cCs·tƒ}|itƒ|idƒ|idƒ|i|iƒƒ|i|iƒƒdi|ƒ}tt|tdƒƒ\}}}|djo tdtd||fƒ‚ndS(Ns--configs'log{command_names=0}'Rs&Adding Physical Volume to Volume GroupiRtvgextend(	RRtVGEXTEND_BIN_PATHRLR%RR&RR'(R	R-tvgtargsR9R:R0R1((s./usr/share/system-config-lvm/CommandHandler.pytadd_unalloc_to_vg°s	


	
cCsK|o
d}nd}||}	tƒ}
|
itƒ|
idƒ|
idƒ|
i|ƒ|
idƒ|
i|ƒ|
idƒ|
i|	ƒ|
idƒ|o|
idƒn|
id	ƒ|
i|iƒƒ|
i|iƒƒd
i|
ƒ}tt|
tdƒƒ\}}
}|djo td
td||
fƒ‚ndS(NRRs-M2s-ls-ps-ss-ctytnRsCreating Volume GroupiRtvgcreate(	RRtVGCREATE_BIN_PATHRLR%RR&RR'(R	tnametmax_phystmax_logtextent_sizetis_unit_megsR-t	clusteredt	units_argtsize_argRVR9R:R0R1((s./usr/share/system-config-lvm/CommandHandler.pyt
create_new_vg½s0

	









	
c
Cs^tƒ}|itƒ|idƒ|idƒ|idƒ|idƒ|i|iƒƒdi|ƒ}tt|ƒ\}}}|djo!tdtd||fƒ‚dStd|}tƒ}|itƒ|idƒ|idƒ|i|ƒdi|ƒ}	t	t|t
d	ƒƒ\}
}}|djo tdtd
|	|fƒ‚ndS(Ns--configs'log{command_names=0}'s-aRYRiRtvgchangesRemoving Volume Grouptvgremove(RRtVGCHANGE_BIN_PATHRLR%RRR'tVGREMOVE_BIN_PATHRR&(
R	R,RVR9R:R0R1RQt	args_listt	cmdstringtoutsterrstresult((s./usr/share/system-config-lvm/CommandHandler.pyt	remove_vgÝs.	





	



	
cCs¤tƒ}|itƒ|idƒ|idƒ|i|iƒƒdi|ƒ}tt|tdƒƒ\}}}|djo tdtd||fƒ‚ndS(Ns--configs'log{command_names=0}'RsRemoving Physical VolumeiRtpvremove(	RRtPVREMOVE_BIN_PATHRLR%RR&RR'(R	tpvnameRVR9R:R0R1((s./usr/share/system-config-lvm/CommandHandler.pyt	remove_pv÷s	


	
c	Cs|i|ƒtjo|i|ƒny±tƒ}|itƒ|idƒ|idƒ|idƒ|i|iƒƒdi|ƒ}tt|t	dƒƒ\}}}|djo t
dtd||fƒ‚nWn(t
j
o}|i|ƒ|‚nXdS(	Ns--configs'log{command_names=0}'s--forceRsRemoving Logical VolumeiRtlvremove(
tis_snapshottFalseRARRtLVREMOVE_BIN_PATHRLR%RR&RR'R@(R	R5RVR9R:R0R1te((s./usr/share/system-config-lvm/CommandHandler.pyt	remove_lvs"	



	
$
c	Cs¸tƒ}|itƒ|idƒ|idƒ|i|ƒ|i|ƒ|i|ƒdi|ƒ}tt|tdƒƒ\}}}|djo tdtd||fƒ‚ndS(Ns--configs'log{command_names=0}'RsRenaming Logical VolumeiRtlvrename(RRtLVRENAME_BIN_PATHR%RR&RR'(	R	R,t
lvname_oldt
lvname_newRVR9R:R0R1((s./usr/share/system-config-lvm/CommandHandler.pyt	rename_lvs	





	
cCs›dg}|i|ƒdi|ƒ}td|ƒ\}}}|djo tdtd||fƒ‚nx*|djotd|ƒ\}}}qmWdS(Ns/bin/umountRiRtumount(RR%RRR'(R	t
mountpointRVR9R:R0R1((s./usr/share/system-config-lvm/CommandHandler.pytunmount%s	

 
cCs·tƒ}|itƒ|idƒ|idƒ|i|iƒƒ|i|iƒƒdi|ƒ}tt|tdƒƒ\}}}|djo tdtd||fƒ‚ndS(Ns--configs'log{command_names=0}'Rs*Removing Physical Volume from Volume GroupiRtvgreduce(	RRtVGREDUCE_BIN_PATHRLR%RR&RR'(R	RUR-RVR9R:R0R1((s./usr/share/system-config-lvm/CommandHandler.pyt	reduce_vg0s	


	
c
Cstƒ}|itƒ|idƒ|idƒ|ddjoŒ|ddjo|idƒqÍ|ddjo|idƒqÍ|ddjo|idƒqÍ|dd	jo|id
ƒqÍn|ddjo|id|dƒn|iƒ}x>|D]6\}}|dt|ƒd
t||dƒ}q
W|i|ƒ|ddjo|i|dƒn|o)|idƒtt|ƒ\}	}
}n"tt|tdƒƒ\}	}
}|djo/di	|ƒ}t
dtd||
fƒ‚ndS(Ns--configs'log{command_names=0}'iis--alloc inherits--alloc normalis--alloc contiguousis--alloc anywheres--name t:t-s--backgroundsMigrating ExtentsRRtpvmove(RRtPVMOVE_BIN_PATHtNoneRLRRRR&R%RR'(
R	R-textents_fromtdatat
backgroundRVtpv_fromtstarttsizeR:R0R1R9((s./usr/share/system-config-lvm/CommandHandler.pytmove_pv?s<	


.

	
cCs´tg}|idƒ|idƒ|o)|idƒtt|ƒ\}}}n"tt|tdƒƒ\}}}|djo/di|ƒ}tdtd||fƒ‚ndS(	Ns--configs'log{command_names=0}'s--backgroundsCompleting Extent MigrationiRRR†(R‡RRRR&R%RR'(R	R‹RVR:R0R1R9((s./usr/share/system-config-lvm/CommandHandler.pytcomplete_pvmovecs	


	
cCstƒ}|idƒ|idƒtd|ƒ}|iƒ}x<|D]4}|iƒ}|diƒ}|djotSqEWtS(Ns
/sbin/dmsetupttargetsitmirror(RRRt
splitlinestsplitRLR Ru(R	R*Rmt	textlinesttextlinet
text_wordstpossible_target((s./usr/share/system-config-lvm/CommandHandler.pytis_dm_mirror_loadedqs	


	cCstƒ}|idƒ|idƒtd|ƒ}|iƒ}x<|D]4}|iƒ}|diƒ}|djotSqEWtS(Ns
/sbin/dmsetupR‘iR’(RRRR“R”RLR Ru(R	R*RmR•R–R—R˜((s./usr/share/system-config-lvm/CommandHandler.pyR™s	


	cCstƒ}|idƒ|idƒtd|ƒ}|iƒ}x<|D]4}|iƒ}|diƒ}|djotSqEWtS(Ns
/sbin/dmsetupR‘itsnapshot(RRRR“R”RLR Ru(R	R*RmR•R–R—R˜((s./usr/share/system-config-lvm/CommandHandler.pytis_dm_snapshot_loadedŒs	


	cCs_d}|d|g}t||ƒ\}}}|djotStdddgtdƒƒtS(Ns/sbin/blockdevs
--rereadptitsleept1sRereading partition table(RRuRR&R (R	tdevpathtBLOCKDEV_BINRVR:R0tstatus((s./usr/share/system-config-lvm/CommandHandler.pytreread_partition_table™s
cCsztƒ}tdddddd|g}tt|ƒ\}}}|djotS|iƒidƒtjotStSdS(	Ntlvss--configs'log{command_names=0}'s-otattrs--noheadingsits(RtLVM_BIN_PATHRRutlstript
startswithR (R	R5R*R:R0R ((s./usr/share/system-config-lvm/CommandHandler.pyRt¢s	
(t__name__t
__module__R
R2RuR;R=R@RARDRERFRRRWRdRnRrRxR}R€RƒRRR™R›R¡Rt(((s./usr/share/system-config-lvm/CommandHandler.pyRs2	*			
		
							$		
	
		((toststringRtexecuteRRRRRRtlvmui_constantstgettextR&R(((s./usr/share/system-config-lvm/CommandHandler.pyt<module>s.
	

Youez - 2016 - github.com/yon3zu
LinuXploit