ó uÈÔec@s[ddlmZmZmZmZdeeefd„ƒYZdeefd„ƒYZdS(iÿÿÿÿ(tPlugint RedHatPlugint DebianPlugint UbuntuPlugintFilesyscBs_eZdZdZd Zdddefdddefdd defgZd „Zd „ZRS( sLocal file systems tfilesyststoragetlsofs%gathers information on all open filestslowtdumpe2fssdump filesystem informationtfragsfilesystem fragmentation statusc Cs|jddddddddd g ƒ|jd d d ƒ|jd d dƒ|jdddgƒ|jdƒ|jdƒr–|jdd dƒnd}|jdƒr´d}nd}d}xT|j||ƒD]@}|jd||fƒ|jdƒrÓ|jd|ƒqÓqÓWdS(Ns /proc/fs/s /proc/mountss/proc/filesystemss/proc/self/mountss/proc/self/mountinfos/proc/self/mountstatss/proc/[0-9]*/mountinfos /etc/mtabs /etc/fstabsmount -lt root_symlinktmountsdf -al -x autofstdfsdf -ali -x autofstfindmnttlslockss/proc/fs/panfsRslsof -b +M -n -l -Ps-hR ts^(/dev/\S+).+ext[234]\s+sdumpe2fs %s %sR s e2freefrag %s(t add_copy_spectadd_cmd_outputtadd_forbidden_patht get_optiontdo_regex_find_all(tselft dumpe2fs_optstmountst ext_fs_regextdev((s7/usr/lib/python2.7/site-packages/sos/plugins/filesys.pytsetups8    cCs0|jdddƒd}|jd|dƒdS(Ns /etc/fstabs(password=)[^,\s]*s \1********s](lsof: (avoiding (.*?)|WARNING: can't stat\(\) (.*?))|Output information may be incomplete.) RR(t do_file_subtdo_cmd_output_sub(Rtregex((s7/usr/lib/python2.7/site-packages/sos/plugins/filesys.pytpostproc=s (R( t__name__t __module__t__doc__t plugin_nametprofilestFalset option_listRR(((s7/usr/lib/python2.7/site-packages/sos/plugins/filesys.pyR s $t RedHatFilesyscBseZd„ZRS(cCs$tt|ƒjƒ|jdƒdS(Nsls -ltradZ /tmp(tsuperR'RR(R((s7/usr/lib/python2.7/site-packages/sos/plugins/filesys.pyRNs(R R!R(((s7/usr/lib/python2.7/site-packages/sos/plugins/filesys.pyR'LsN(t sos.pluginsRRRRRR'(((s7/usr/lib/python2.7/site-packages/sos/plugins/filesys.pyt s"@