diff options
author | Jasper St. Pierre <jstpierre@mecheye.net> | 2013-09-06 20:17:44 -0400 |
---|---|---|
committer | Jasper St. Pierre <jstpierre@mecheye.net> | 2013-09-09 22:51:33 -0400 |
commit | c7f9fc9c63c3686c7899503b64eed79261f7aa3b (patch) | |
tree | 2822010bf99074f2ff194ca02721f2bd3b4b2554 /src/libostree/ostree-repo-file.c | |
parent | 33db74d0ce0adbc790574351bb1d9d21f55edbda (diff) | |
download | ostree-c7f9fc9c63c3686c7899503b64eed79261f7aa3b.tar.gz |
repo: Change the pairs of checksums to instead be based on OstreeRepoFiles
We want an OstreeRepoFile to be the way to reference a "filesystem
tree" that's stored in the repo, which is a combination of a DIR_TREE
and a DIR_META. The idea is that once you write an mtree to the repo
using ostree_repo_write_mtree, it becomes serialized and you get an
OstreeRepoFile in return.
Change any APIs that care about DIR_TREE / DIR_META checksums to care
about OstreeRepoFiles instead, which right now is mostly is
ostree_repo_write_commit.
https://bugzilla.gnome.org/show_bug.cgi?id=707727
Diffstat (limited to 'src/libostree/ostree-repo-file.c')
-rw-r--r-- | src/libostree/ostree-repo-file.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libostree/ostree-repo-file.c b/src/libostree/ostree-repo-file.c index d5f2a542..51b12d53 100644 --- a/src/libostree/ostree-repo-file.c +++ b/src/libostree/ostree-repo-file.c @@ -104,10 +104,10 @@ set_error_noent (GFile *self, GError **error) return FALSE; } -static OstreeRepoFile * -ostree_repo_file_new_root (OstreeRepo *repo, - const char *contents_checksum, - const char *metadata_checksum) +OstreeRepoFile * +_ostree_repo_file_new_root (OstreeRepo *repo, + const char *contents_checksum, + const char *metadata_checksum) { OstreeRepoFile *self; @@ -172,7 +172,7 @@ _ostree_repo_file_new_for_commit (OstreeRepo *repo, ostree_checksum_inplace_from_bytes (g_variant_get_data (tree_metadata_csum_v), tree_metadata_csum); - ret = ostree_repo_file_new_root (repo, tree_contents_csum, tree_metadata_csum); + ret = _ostree_repo_file_new_root (repo, tree_contents_csum, tree_metadata_csum); out: return ret; @@ -530,7 +530,7 @@ ostree_repo_file_dup (GFile *file) if (self->parent) return G_FILE (ostree_repo_file_new_child (self->parent, self->name)); else - return G_FILE (ostree_repo_file_new_root (self->repo, self->tree_contents_checksum, self->tree_metadata_checksum)); + return G_FILE (_ostree_repo_file_new_root (self->repo, self->tree_contents_checksum, self->tree_metadata_checksum)); } static guint |