summaryrefslogtreecommitdiff
path: root/src/libostree/ostree-repo-private.h
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2015-02-01 11:09:47 -0500
committerColin Walters <walters@verbum.org>2015-02-05 21:24:21 -0500
commitfab1e113db558cb7d6754e243919558df92d4864 (patch)
treed084f98c285d9c6c25e534992209c11262f3ea64 /src/libostree/ostree-repo-private.h
parent247866a9bca3557fb4a22a772a034eb89682b6a3 (diff)
downloadostree-fab1e113db558cb7d6754e243919558df92d4864.tar.gz
When mirroring, write content directly, do not verify
When doing a pull --mirror from an archive-z2 repository into another archive-z2 repository, currently we gunzip/checksum/gzip each content object. The re-gzip process in particular is fairly expensive. This does assume that the upstream content is trusted and correct. It'd be nice in the future to do at least a CRC check, if not the full checksum. (Could we append CRC data to the end of filez objects?) We could also choose to only do this optimization if fetching over TLS. before: 1626 metadata, 20320 content objects fetched; 299634 KiB transferred in 62 seconds after : 1626 metadata, 20320 content objects fetched; 299634 KiB transferred in 11 seconds
Diffstat (limited to 'src/libostree/ostree-repo-private.h')
-rw-r--r--src/libostree/ostree-repo-private.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libostree/ostree-repo-private.h b/src/libostree/ostree-repo-private.h
index a19108f1..e55ed607 100644
--- a/src/libostree/ostree-repo-private.h
+++ b/src/libostree/ostree-repo-private.h
@@ -194,6 +194,15 @@ _ostree_repo_gpg_verify_file_with_metadata (OstreeRepo *self,
GCancellable *cancellable,
GError **error);
+gboolean
+_ostree_repo_commit_loose_final (OstreeRepo *self,
+ const char *checksum,
+ OstreeObjectType objtype,
+ int temp_dfd,
+ const char *temp_filename,
+ GCancellable *cancellable,
+ GError **error);
+
typedef struct {
int fd;
char *temp_filename;