]> git.ipfire.org Git - thirdparty/elfutils.git/commit
PR30809: improve debuginfod client progress-callback parameters
authorFrank Ch. Eigler <fche@redhat.com>
Tue, 29 Aug 2023 18:08:04 +0000 (14:08 -0400)
committerFrank Ch. Eigler <fche@redhat.com>
Tue, 29 Aug 2023 18:11:27 +0000 (14:11 -0400)
commit3ef3fab0d64c89a52dd6e2ce0d01dd5e713d7b5a
tree930b8ed1d78b27449b63b57f447aca2263d664b5
parent9c41344c968a9c4b9bf539b09ed522e5ada9deb1
PR30809: improve debuginfod client progress-callback parameters

* debuginfod-client.c (debuginfod_query_server): Use fstat(3)
  of the file handle being downloaded into as the preferred
  source of download progress.

Tested by hand, as the testsuite doesn't have enough machinery to
simulate compressed vs. uncompressed service.  Hand testing with
(unmodified) fedora-38 gdb and debuginfod-find shows dramatically
improved progress displays: all have quantitative figures when
fetching from real (unmodified) upstream servers.

Signed-off-by: Frank Ch. Eigler <fche@redhat.com>
debuginfod/debuginfod-client.c