repo: Add a private helper to replace a file, honoring fsync policy

Extracted from discussion in https://github.com/GNOME/ostree/pull/83
This commit is contained in:
Colin Walters committed 2015-04-13 13:28:02 -04:00
1 parent 1892a6fe13
commit fff8ffdd2f
3 files changed
+28 -3

No files matched your search

+9
View File
@@ -126,6 +126,15 @@ _ostree_repo_update_refs (OstreeRepo *self,
GCancellable *cancellable,
GError **error);
gboolean
_ostree_repo_file_replace_contents (OstreeRepo *self,
int dfd,
const char *path,
guint8 *buf,
gsize len,
GCancellable *cancellable,
GError **error);
gboolean
_ostree_repo_write_ref (OstreeRepo *self,
const char *remote,