Alexander Larsson
eaa678eaa4
deltas: Make apply-offline only read the parts once
...
No need to read() the file for the checksum if we then directly mmap it.
Instead we just mmap it initially and checksum from that.
2015-11-10 08:56:13 +01:00
Alexander Larsson
11a79220e2
static deltas: Add support for inline-parts
...
In this mode the parts are stored in the metadata of the main delta
superblock file. This can be useful if you want a single-file delta
for easy transport, or for http in the case the delta is very small.
2015-11-10 08:56:12 +01:00
John Hiesey
70c07a6338
static-delta: Fix annotation on ostree_repo_list_static_delta_names
...
out_deltas should be (transfer-container)
2015-10-21 21:09:23 -04:00
Alexander Larsson
fd6c572c42
_ostree_static_delta_part_validate: Take a stream instead of a file as arg
...
This is only called in one place, and we have already opened the file there,
no need to open it twice.
2015-09-13 22:25:21 -04:00
Alexander Larsson
1ee4007a75
offline delta apply: Handle the version field
...
It seems the format changed and this code was not updated.
2015-09-13 22:23:56 -04:00
Matthew Barnes
c2c322efa9
Use g_autoptr(GVariant) instead of gs_unref_variant
2015-05-06 22:07:10 -04:00
Matthew Barnes
bb231fdf74
Use g_autoptr(GPtrArray) instead of gs_unref_ptrarray
2015-05-06 22:07:10 -04:00
Matthew Barnes
e6556dd223
Use g_autoptr(GBytes) instead of gs_unref_bytes
2015-05-06 22:07:10 -04:00
Matthew Barnes
4ee1acd981
Use g_autoptr() for GIO object types
...
GLib 2.44 supplies all the necessary autocleanup macros for GIO types,
and libglnx backports the relevant macros for ostree.
2015-05-06 21:51:19 -04:00
Matthew Barnes
7a62d64968
Use g_autofree instead of gs_free
2015-05-06 21:50:17 -04:00
Colin Walters
92cc3b5968
deltas: Use base64 for csums, add version to parts
2015-02-16 10:10:35 -05:00
Giuseppe Scrivano
6a3959c895
syntax-check: Remove empty lines at the end of file
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2015-02-02 15:07:56 +01:00
Alexander Larsson
82ed6c43ed
Fix ostree_repo_list_static_delta_names
...
The current layout uses a prefix of two bytes as the initial dir
and a second directory inside that with the superblock. This
updates the list code to handle that.
https://bugzilla.gnome.org/show_bug.cgi?id=721799
2015-01-14 14:36:35 +01:00
Colin Walters
ca678224be
Static deltas support
...
https://bugzilla.gnome.org/show_bug.cgi?id=721799
2014-12-18 12:48:47 +01:00
Colin Walters
60c4d467aa
deltas: Add a timestamp to delta metadata
2014-02-10 09:40:35 -05:00
Colin Walters
2d6374822b
Initial basic static delta code drop
...
This has a very basic level of functionality (deltas can be generated,
and applied offline). There is only some stubbed out pull code to
fetch them via HTTP.
But, better to commit this now and improve it from a known starting
point, rather than have it languish in a branch.
2014-02-04 10:31:44 -05:00