See the documentation for
ostree_repo_devino_cache_new()
. This function can
then be used for later calls to
ostree_repo_write_directory_to_mtree()
to optimize commits.
Note if your process has multiple writers, you should use separate
OSTreeRepo
instances if you want to also use this API.
This function will add a reference to cache
without copying - you
should avoid further mutation of the cache.
A hash table caching device,inode to checksums
If policy
is non-%NULL, use it to look up labels to use for
"security.selinux" extended attributes.
Note that any policy specified this way operates in addition to any extended attributes provided via ostree_repo_commit_modifier_set_xattr_callback(). However if both specify a value for "security.selinux", then the one from the policy wins.
Policy to use for labeling
If set, this function should return extended attributes to use for the given path. This is useful for things like ACLs and SELinux, where a build system can label the files as it's committing to the repository.
Function to be invoked, should return extended attributes for path
A structure allowing control over commits.