[Bug debuginfod/26125] during debuginfod cache cleanup, try harder to rmdir empty dirs

fche at redhat dot com sourceware-bugzilla@sourceware.org
Thu Mar 18 17:14:56 GMT 2021


Frank Ch. Eigler <fche at redhat dot com> changed:

           What    |Removed                     |Added
           Severity|normal                      |critical
           Assignee|unassigned at sourceware dot org   |alizhang at redhat dot com

--- Comment #8 from Frank Ch. Eigler <fche at redhat dot com> ---
Suggest implementation during cache cleanup,
- post-order traversal (files aged/deleted first), fstat buildid directories
- if mtime age is greater than maxage_s, attempt one rmdir
  (that rmdir will fail for nonempty directories, which is fine)

During download, always attempt the mkdir(target_cache_dir), independently of
checking whether it already exists (i.e., drop stat(target_cache_dir,...), and
ignore the errno==EEXIST case as normal.

You are receiving this mail because:
You are on the CC list for the bug.

More information about the Elfutils-devel mailing list