관리-도구
편집 파일: filesys.pyo
� u��ec @ s[ d d l m Z m Z m Z m Z d e e e f d � � YZ d e e f d � � YZ d S( i����( t Plugint RedHatPlugint DebianPlugint UbuntuPlugint Filesysc B s_ e Z d Z d Z d Z d d d e f d d d e f d d d e f g Z d � Z d � Z RS( s Local file systems t filesyst storaget lsofs% gathers information on all open filest slowt dumpe2fss dump filesystem informationt frags filesystem fragmentation statusc C s | j d d d d d d d d d g � | j d d d �| j d d d �| j d d d g � | j d � | j d � r� | j d d d �n d } | j d � r� d } n d } d } xT | j | | � D]@ } | j d | | f � | j d � r� | j d | � q� q� Wd S( Ns /proc/fs/s /proc/mountss /proc/filesystemss /proc/self/mountss /proc/self/mountinfos /proc/self/mountstatss /proc/[0-9]*/mountinfos /etc/mtabs /etc/fstabs mount -lt root_symlinkt mounts df -al -x autofst dfs df -ali -x autofst findmntt lslockss /proc/fs/panfsR s lsof -b +M -n -l -Ps -hR t s ^(/dev/\S+).+ext[234]\s+s dumpe2fs %s %sR s e2freefrag %s( t add_copy_spect add_cmd_outputt add_forbidden_patht get_optiont do_regex_find_all( t selft dumpe2fs_optst mountst ext_fs_regext dev( ( s7 /usr/lib/python2.7/site-packages/sos/plugins/filesys.pyt setup s8 c C s0 | j d d d � d } | j d | d � d S( Ns /etc/fstabs (password=)[^,\s]*s \1********s] (lsof: (avoiding (.*?)|WARNING: can't stat\(\) (.*?))|Output information may be incomplete.) R R ( t do_file_subt do_cmd_output_sub( R t regex( ( s7 /usr/lib/python2.7/site-packages/sos/plugins/filesys.pyt postproc= s ( R ( t __name__t __module__t __doc__t plugin_namet profilest Falset option_listR R ( ( ( s7 /usr/lib/python2.7/site-packages/sos/plugins/filesys.pyR s $t RedHatFilesysc B s e Z d � Z RS( c C s$ t t | � j � | j d � d S( Ns ls -ltradZ /tmp( t superR'