a G%@i ã@s&ddlmZmZGdd„deeƒZdS)é)ÚPluginÚ RedHatPluginc@s(eZdZdZdZdZdZdZdd„ZdS) ÚVdozVirtual Data OptimizerÚvdo)Zstorage)r)z /sys/kvdoz/sys/udsz/etc/vdoconf.ymlz/etc/vdoconf.xmlc Csà| |j¡| d¡}|d ¡D]}| d|›¡q"| ddg¡d}d}d}| d d „||fDƒ¡| d |›¡}|d d krÜ|d ¡D]H}| ¡dd…\}}} |  d¡r’|›d| d¡›} | d| ›¡q’dS)Nzvdo list --allÚoutputzvdo status -n zvdostats --human-readablezvdostats --verbosez„vdo_slab_size,vdo_header_size,vdo_minimum_io_size,vdo_block_map_cache_size,vdo_block_map_era_length,vdo_write_policy,vdo_max_discardzvdo_ack_threads,vdo_bio_rotation,vdo_bio_threads,vdo_cpu_threads,vdo_hash_zone_threads,vdo_logical_threads,vdo_physical_threadszsvdo_compression,vdo_deduplication,vdo_use_metadata_hints,vdo_use_sparse_index,vdo_index_state,vdo_index_memory_sizecSsg|]}d|›‘qS)ú lvs -a -o +©)Ú.0Zcolsrrú:/usr/lib/python3.9/site-packages/sos/report/plugins/vdo.pyÚ -sÿzVdo.setup..rÚstatusréÚDú-z[]zvdodumpconfig /dev/mapper/)Z add_copy_specÚfilesZcollect_cmd_outputÚ splitlinesZadd_cmd_outputÚsplitÚ startswithÚstrip) ÚselfZvdosrZ vdo_cols1Z vdo_cols2Z vdo_cols3Zlvm_vdosÚlvZvgZlv_attrZvdo_pathrrr Úsetups.  þ ÿ  ÿz Vdo.setupN) Ú__name__Ú __module__Ú __qualname__Z short_descZ plugin_nameZprofilesZpackagesrrrrrr r s rN)Zsos.report.pluginsrrrrrrr Ú s