o
    ida                     @   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 )
XfszThis 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   sl   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 %s   xfs_info)tagszxfs_admin -l -u %sr   r   r   )zipdo_regex_find_allsplitadd_cmd_outputadd_copy_spec)selfmountsext_fs_regexdeve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   