o
    O6uf]  ã                   @   s&   d dl mZmZ G dd„ deeƒZdS )é    )ÚPluginÚIndependentPluginc                   @   s,   e Zd ZdZdZdZdZdZdZdd„ Z	d	S )
ÚXfszÞThis plugin collects information on mounted XFS filessystems on the
    local system.

    Users should expect `xfs_info` and `xfs_admin` collections by this plugin
    for each XFS filesystem that is locally mounted.
    zXFS filesystemÚxfs)Ústorage)ú/sys/fs/xfsú/proc/fs/xfs)r   c                 C   sp   d}d}t |  ||¡ƒD ]"}|D ]}| d¡}| jd|d › �dd� |  d|d	 › �¡ qq|  d
dg¡ d S )Nz/proc/mountsz^(/dev/.+).+xfs\s+ú z	xfs_info é   Úxfs_info)Útagszxfs_admin -l -u r   r   r   )ÚzipÚdo_regex_find_allÚsplitÚadd_cmd_outputÚadd_copy_spec)ÚselfÚmountsÚext_fs_regexÚdevÚextÚparts© r   ú8/usr/lib/python3/dist-packages/sos/report/plugins/xfs.pyÚsetup   s   
ÿü
þz	Xfs.setupN)
Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú
short_descÚplugin_nameÚprofilesÚfilesÚkernel_modsr   r   r   r   r   r      s    r   N)Úsos.report.pluginsr   r   r   r   r   r   r   Ú<module>   s   