diff options
author | Noah <nsanci@redhat.com> | 2021-07-07 14:40:10 -0400 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2021-07-08 17:22:05 +0200 |
commit | 0ae9b791b47cdee92ac7221e3eead79c83a64a40 (patch) | |
tree | d3ab5ee9782b1a1a8de7203505e34be7d08f940f /doc/debuginfod.8 | |
parent | cdcd7dc3d20a002abe1ce318f9b9d0895eee1810 (diff) | |
download | elfutils-0ae9b791b47cdee92ac7221e3eead79c83a64a40.tar.gz |
debuginfod: PR27711 - Use -I/-X regexes during groom phase
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.
Signed-off-by: Noah Sanci <nsanci@redhat.com>
Diffstat (limited to 'doc/debuginfod.8')
-rw-r--r-- | doc/debuginfod.8 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/debuginfod.8 b/doc/debuginfod.8 index 1ba42cf6..1adf703a 100644 --- a/doc/debuginfod.8 +++ b/doc/debuginfod.8 @@ -159,6 +159,9 @@ scan, independent of the rescan time (including if it was zero), interrupting a groom pass (if any). .TP +.B "\-r" +Apply the -I and -X during groom cycles, so that files excluded by the regexes are removed from the index. These parameters are in addition to what normally qualifies a file for grooming, not a replacement. + .B "\-g SECONDS" "\-\-groom\-time=SECONDS" Set the groom time for the index database. This is the amount of time the grooming thread will wait after finishing a grooming pass before |