MINI SHELL

Server : Apache/2.2.2 (Fedora)
System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686
User : apache ( 48)
PHP Version : 5.2.9
Disable Function : NONE
Directory :  /proc/self/root/usr/lib/python2.4/site-packages/rhpl/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/self/root/usr/lib/python2.4/site-packages/rhpl/diskutil.pyc
mò
¼g™@c@sddkZdkZdkZddd„Zdd„Zdd„Zdd„Zd„Zd	„ZdS(
Ntext2icCs•tii|ƒ}ti||||ƒ}y]|djo
d}nd}d||||f}tddƒ}|i|ƒ|iƒWnnX|S(Nitrotrws%s %s %s %s 0 0
s	/etc/mtabta(tostpathtnormpathtlocationt	_diskutiltmounttfstypetdevicetreadOnlytrcRtnewlinetopentftwritetclose(RRR
RRRR
R((t1/usr/lib/python2.4/site-packages/rhpl/diskutil.pyR	s


c	Cs	tii|ƒ}tii|ƒp
td‚nti|ƒ}yt	ddƒ}|iƒ}|i
ƒt	ddƒ}xJ|D]B}|iddƒ\}}}||joqn|i|ƒqW|i
ƒWnnX|o$tii|ƒoti|ƒn|S(Ns1diskutil.umount() can only unmount by mount points	/etc/mtabtrtwt i(RRRtwhattisdirt
ValueErrorRtumountR
RRt	readlinestlinesRtlinetsplittdevtmntpttfooRt	removeDirtrmdir(	RR"R RRRR
RR!((RR%s*


s
/dev/cdromcCsTti|titiBƒ}yti|ƒWntj
onXti	|ƒdS(N(
RRRtO_RDONLYt
O_NONBLOCKtfdRt
ejectcdromtSystemErrorR(RR&((Rt
ejectCdromBscCsz|o
ti}n
ti}ti||ƒ}ti||ƒ}zt
i|||ƒWdti|ƒti|ƒXdS(N(
RRR$tmodetO_RDWRRtfilettargRtloopRtlosetupR(RR,RR-R*R.((RR/Ms
	
cCs;ti|tiƒ}zti|ƒWdti|ƒXdS(N(RRRR$R.Rt	unlosetupR(RR.((RR0Zs
cCs*tiƒ}|djo
td‚n|S(NsUnable to find loop device(RtfindunusedloopdevRtNoneR((R((Rt
getUnusedLoopas

(	RtsysRR	RR)R/R0R3(	R/RR	RR4R)R0R3R((Rt?s	
	

Anon7 - 2021