ostree/src
William Manley 5b0dd1002e OstreeMutableTree: Refactor: Add `parent` pointer
This implements a TODO item from
`ostree_mutable_tree_get_contents_checksum`.  We now no-longer invalidate
the dirtree contents checksum at `get_contents_checksum` time - we
invalidate it when the mtree is modified.  This is implemented by keeping
a pointer to the parent directory in each `OstreeMutableTree`.  This gives
us stronger invariants on `contents_checksum`.

For even stronger guarantees about invariants we could make
`ostree_repo_write_mtree` or similar a member of `OstreeMutableTree` and
remove `ostree_mutable_tree_set_metadata_checksum`.

I think I've fixed a bug here too.  We now invalidate parent's contents
checksum when our metadata checksum changes, whereas we didn't before.

Closes: #1655
Approved by: cgwalters
2018-06-29 21:31:08 +00:00
..
boot deploy: Change BootLoaderSpec filenames so they can be used for sorting 2018-06-27 18:08:28 +00:00
libostree OstreeMutableTree: Refactor: Add `parent` pointer 2018-06-29 21:31:08 +00:00
libotutil libotutil/checksum-utils: Fix memory management 2018-03-29 13:45:26 +00:00
ostree create-usb: Tweak docs for --destination-repo 2018-06-28 13:03:09 +00:00
rofiles-fuse Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
switchroot switchroot: Allow letting ostree-prepare-root mount /var 2018-06-07 21:41:32 +00:00