repo: Support fsync=false configuration

See rationale in the updated docs.  Basically developer use cases as
well as UPS-backed servers.
This commit is contained in:
Colin Walters committed 2014-06-05 17:35:50 -04:00
1 parent ef00572999
commit 51bf1fab0f
2 files changed
+35

No files matched your search

+11
View File
@@ -682,6 +682,17 @@ ostree_repo_open (OstreeRepo *self,
TRUE, &self->enable_uncompressed_cache, error))
goto out;
{
gboolean do_fsync;
if (!ot_keyfile_get_boolean_with_default (self->config, "core", "fsync",
TRUE, &do_fsync, error))
goto out;
if (!do_fsync)
ostree_repo_set_disable_fsync (self, TRUE);
}
{
gs_unref_object GFile *default_repo_path = get_default_repo_path ();