HomeClusterLabs Projects

Fix: tools: avoid grep crashes in crm_report when looking for system logs

Description

Fix: tools: avoid grep crashes in crm_report when looking for system logs

Grepping large binary files can exhaust memory. This avoids that and speeds up
crm_report's log scan by: skipping things that aren't files, aren't readable,
or are empty; skipping files with more than 256 nonprintable bytes in the first
1024; and using LC_ALL="C" to speed up grep.

Details

Provenance
kgaillotAuthored on Dec 16 2016, 6:56 PM
Parents
rP895759482902: Merge pull request #1204 from HideoYamauchi/change_combined
Branches
Unknown
Tags
Unknown

Event Timeline