repo: Hold an fd "repo_dir_fd" open for the toplevel too

We could just make everything relative to this, but the objects/ and
tmp/ are accessed very often, so I think it's worth holding individual
fds.

This fd can cover everything else: refs, deltas, etc.
This commit is contained in:
Colin Walters committed 2015-02-05 14:15:34 -05:00
1 parent e739677ea1
commit 3b8ed12ab2
2 files changed
+14 -3

No files matched your search

+1
View File
@@ -37,6 +37,7 @@ struct OstreeRepo {
char *boot_id;
GFile *repodir;
int repo_dir_fd;
GFile *tmp_dir;
int tmp_dir_fd;
GFile *local_heads_dir;