[Bug debuginfod/27711] New: grooming should process -I/-X
fche at redhat dot com
sourceware-bugzilla@sourceware.org
Thu Apr 8 15:58:20 GMT 2021
https://sourceware.org/bugzilla/show_bug.cgi?id=27711
Bug ID: 27711
Summary: grooming should process -I/-X
Product: elfutils
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: debuginfod
Assignee: unassigned at sourceware dot org
Reporter: fche at redhat dot com
CC: elfutils-devel at sourceware dot org
Target Milestone: ---
The debuginfod -I/-X regexes operate during traversal to identify those files
in need of scanning. The regexes are not used during grooming. This means
that if from run to run, the regex changes so that formerly indexed files are
excluded from traversal, the data is still retained in the index.
This is both good and bad. On one hand, if the underlying data is still
available, grooming will preserve the data, and let clients ask for it. On the
other hand, if the growing index size is a problem, and one wishes to age
no-longer-regex-matching index data out, there is no way.
Let's add a debuginfod flag to use regexes during grooming. Specifically, in
groom(), where the stat() test exists, also check for regex matching as in
scan_source_paths(). Treat failure of the regex the same way as though the
file didn't exist.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Elfutils-devel
mailing list