uec@sQddlmZmZmZmZddlZdeeeefdYZdS(i(tPlugint RedHatPlugint DebianPlugint UbuntuPluginNtDlmcBsPeZdZdZd ZdddgZdddefgZdZd Z RS( sDLM (Distributed lock manager)tdlmtclustertcmant pacemakertlockdumpscapture lock dumps for DLMtslowcCsF|jdg|jdddg|jdrB|jndS(Ns/etc/sysconfig/dlmsdlm_tool log_plocks dlm_tool dumpsdlm_tool ls -nR (t add_copy_spectadd_cmd_outputt get_optiont do_lockdump(tself((s3/usr/lib/python2.7/site-packages/sos/plugins/dlm.pytsetups  cCsd}|j|}|ddkr)dSd}tj|tj}x6|j|dD]!}|jd|dd|qXWdS( Ns dlm_tool lststatusis^name\s+([^\s]+)$toutputsdlm_tool lockdebug -svw '%s'tsuggest_filenames dlm_locks_%s(tcollect_cmd_outputtretcompilet MULTILINEtfindallR (Rtdlm_tooltresulttlock_exptlock_ret lockspace((s3/usr/lib/python2.7/site-packages/sos/plugins/dlm.pyR#s (R( t__name__t __module__t__doc__t plugin_nametprofilestpackagestFalset option_listRR(((s3/usr/lib/python2.7/site-packages/sos/plugins/dlm.pyR s (t sos.pluginsRRRRRR(((s3/usr/lib/python2.7/site-packages/sos/plugins/dlm.pyt s"