Finding the size of xdg-apps

Colin Walters walters at verbum.org
Thu Jan 28 14:43:13 UTC 2016


On Thu, Jan 14, 2016, at 09:44 AM, Alexander Larsson wrote:

> Static deltas seem useful for the start-from-scratch and the update-
> from-previous-commit cases, but it would not necessarily replace size
> calculations for a generic update, 

By "generic update" do you mean without static deltas?

> or handle the details such as
> fallback objects in deltas (or is that info recorded in the delta
> file?)

It is in fact, for precisely the reason discussed in this thread =)
(See the definition of `OSTREE_STATIC_DELTA_FALLBACK_FORMAT`
 in `ostree-repo-static-delta-private.h`)

I wrote:
https://github.com/GNOME/ostree/pull/176

```
$ ostree --repo=/srv/binwork/fedora-atomic-host/repo static-delta show 2fc7fe5550e410128d73535c77e98352b495478132c9b4060a4b8ab640e74f09-3638c4d39a264826dce7478fef1d80794accb676f868486
Delta: 2fc7fe5550e410128d73535c77e98352b495478132c9b4060a4b8ab640e74f09-3638c4d39a264826dce7478fef1d80794accb676f868486c88a042a69c449ded
Timestamp: 1453949529
Number of parents: 0
Number of fallback entries: 5
Total Fallback Size: 79710278 (79.7 MB)
Total Fallback Uncompressed Size: 85973757 (86.0 MB)
Number of parts: 10
Part0: nobjects=662 size=619041 usize=38471737
Part1: nobjects=474 size=584785 usize=31881706
Part2: nobjects=295 size=294089 usize=35350634
Part3: nobjects=388 size=361409 usize=41212475
Part4: nobjects=220 size=625797 usize=31710264
Part5: nobjects=281 size=813909 usize=32495355
Part6: nobjects=285 size=454981 usize=39237778
Part7: nobjects=424 size=293889 usize=31990058
Part8: nobjects=139 size=2947233 usize=28737352
Part9: nobjects=32 size=739665 usize=7553365
Total Part Size: 7734798 (7.7 MB)
Total Part Uncompressed Size: 318640724 (318.6 MB)
Total Size: 87445076 (87.4 MB)
Total Uncompressed Size: 404614481 (404.6 MB)
```

So this is the kind of thing a UI could show, I think a new
libostree API to expose it would make sense:
https://bugzilla.gnome.org/show_bug.cgi?id=761217

I'm not really a fan of trying to retrofit size metadata
into the non-static-delta model now, but maybe we
could try something with the summary file.



More information about the xdg-app mailing list