�
i��da � �, � d dl mZmZ G d� dee� Zy)� )�Plugin�IndependentPluginc �* � e Zd ZdZdZdZdZdZdZd� Z y) �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.
zXFS filesystem�xfs)�storage)�/sys/fs/xfs�/proc/fs/xfs)r c � � d}d}t | j ||� � D ]J }|D ]C }|j d� }| j d|d z d�� | j d|d z � �E �L | j d
dg� y )Nz/proc/mountsz^(/dev/.+).+xfs\s+� zxfs_info %s� �xfs_info)�tagszxfs_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�partss �8/usr/lib/python3/dist-packages/sos/report/plugins/xfs.py�setupz Xfs.setup s� � ���,���t�-�-�l�F�C�D� G�C��
G���������#�#�M�U�1�X�$>�)3� $� 5��#�#�$8�E�!�H�$E�F�
G� G�
�����
� � N)
�__name__�
__module__�__qualname__�__doc__�
short_desc�plugin_name�profiles�files�kernel_modsr � r r r r s' |