ostree/src
Colin Walters 5929ce9e0e repo: Add APIs for devino optimization between checkout -> commit
A fast way to generate new OSTree content using an existing
tree is to checkout (as hard links), add/replace files, then
call `ostree_repo_scan_hardlinks()`, then commit.

But `ostree_repo_scan_hardlinks()` scans the entire repo, which
can be slow if you have a lot of content.

All we really need is a mapping of (device,inode) -> checksum
just for the objects we checked out, then use that mapping
for commits.

This patch adds API so that callers can create a mapping via
`ostree_repo_devino_cache_new()`, then pass it to
`ostree_repo_checkout_tree_at()` which will populate it, and then
`ostree_repo_write_directory_to_mtree()` can consume it.

I plan to use this in rpm-ostree for package layering work.

Notes:
 - The old `ostree_repo_scan_hardlinks()` API still works.
 - I tweaked the cache to be a set with the checksum colocated with
   the key, to avoid a separate malloc block per entry.

https://github.com/GNOME/ostree/pull/167
2016-01-07 14:19:12 -05:00
..
boot syntax-check: Remove empty lines at the end of file 2015-02-02 15:07:56 +01:00
libostree repo: Add APIs for devino optimization between checkout -> commit 2016-01-07 14:19:12 -05:00
libotutil sysroot: Write symlinks before calling fsync(), then rename after 2015-10-25 11:46:41 -04:00
ostree grub2_generate: load sysroot before using it 2015-12-24 12:41:22 -05:00
switchroot prepare-root: set up /boot bind-mount for single partition systems 2015-10-15 21:36:21 -04:00