mirror of
https://github.com/flatpak/flatpak.git
synced 2026-10-24 00:19:19 -04:00
builder: Don't fsync on cache checkouts
This commit is contained in:
1 parent
739b5ab6db
commit
46558798a2
1 file changed
+4
@@ -195,6 +195,10 @@ builder_cache_open (BuilderCache *self,
|
||||
{
|
||||
self->repo = ostree_repo_new (self->cache_dir);
|
||||
|
||||
/* We don't need fsync on checkouts as they are transient, and we
|
||||
rely on the syncfs() in the transaction commit for commits. */
|
||||
ostree_repo_set_disable_fsync (self->repo, TRUE);
|
||||
|
||||
if (!g_file_query_exists (self->cache_dir, NULL))
|
||||
{
|
||||
if (!ostree_repo_create (self->repo, OSTREE_REPO_MODE_BARE, NULL, error))
|
||||
|
||||
Reference in new issue
Block a user