Re: ostree - how to enable libcurl's continue/resume feature
- From: Dan Nicholson <dbn endlessos org>
- To: Davis Roman <davis roman84 gmail com>
- Cc: ostree-list <ostree-list gnome org>, agerbeth21 gmail com
- Subject: Re: ostree - how to enable libcurl's continue/resume feature
- Date: Tue, 22 Dec 2020 16:35:49 -0700
On Tue, Dec 22, 2020 at 1:59 PM Davis Roman via ostree-list
<ostree-list gnome org> wrote:
Hello,
When using curl, there is an option to Continue/Resume a previous file transfer at the given offset using
the -C flag.
Our understanding is that ostree uses libcurl to download its metadata so we're trying to figure out if
it's possible to instruct ostree to enable libcurl's "continue/resume" feature.
ostree doesn't support that feature and it would take some work to get
it right. I don't believe that it saves partially downloaded objects
that could be continued. Assuming that it did save partial objects
(this concept would need some thought to ensure that it could tell the
difference between a partial download and a corrupted download), then
presumably you could try to resume a failed transaction with partial
objects. Then the fetcher would need to recognize them and switch to
HTTP range requests. I think it would work OK for most types of
objects where the checksum is known ahead of time and there's a
reliable way to tell if the staged object is corrupt or partial.
I believe https://github.com/ostreedev/ostree/issues/639 describes
what you're after, but as you can see no one's worked on it.
--
Dan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]