ostree/src/libostree
Sam Spilsbury 002e5eeac6 avahi: Don't complain with g_warning if the daemon wasn't running
This is a normal case when running unit tests in client code
on continuous integration infrastructure. When those tests are
running they will set G_DEBUG=fatal-warnings which will cause
the program to abort if a warning is emitted. Instead, emit
a debug message if the problem was that we couldn't connect to
the daemon.

Closes: #1542
Approved by: jlebon
2018-04-18 19:39:33 +00:00
..
README-gpg pull: Verify commits with gpg signatures from detached metadata 2013-09-29 14:49:47 -04:00
README.md core: Associate branches with remotes, move trigger runs into checkout 2012-04-03 23:46:34 -04:00
bupsplit.c lib: Move the bupsplit selftest into our test framework 2017-02-02 16:51:36 +00:00
bupsplit.h lib: Move the bupsplit selftest into our test framework 2017-02-02 16:51:36 +00:00
libostree-devel.sym lib/repo: Add ostree_repo_traverse_commit_union_with_parents 2018-04-14 15:36:21 +00:00
libostree-experimental.sym lib/repo: Add locking auto cleanup handler 2017-12-05 02:32:47 +00:00
libostree-released.sym Release 2018.3 2018-03-21 16:01:41 +00:00
ostree-1.pc.in libostree: Expose $OSTREE_FEATURES in the pkg-config file 2017-05-08 18:48:07 +00:00
ostree-async-progress.c Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-async-progress.h Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-autocleanups.h Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-bloom-private.h Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-bloom.c Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-bootconfig-parser.c tree-wide: Remove Emacs modelines 2017-09-21 21:38:34 +00:00
ostree-bootconfig-parser.h tree-wide: Remove Emacs modelines 2017-09-21 21:38:34 +00:00
ostree-bootloader-grub2.c tree-wide: Update to new libglnx fd APIs 2017-10-11 19:26:10 +00:00
ostree-bootloader-grub2.h tree-wide: Remove Emacs modelines 2017-09-21 21:38:34 +00:00
ostree-bootloader-syslinux.c syslinux: Add support for DEVICETREE from bootloader spec 2018-01-16 22:54:53 +00:00
ostree-bootloader-syslinux.h tree-wide: Remove Emacs modelines 2017-09-21 21:38:34 +00:00
ostree-bootloader-uboot.c tree-wide: Use autoptr for OstreeKernelArgs 2017-10-25 01:48:56 +00:00
ostree-bootloader-uboot.h tree-wide: Remove Emacs modelines 2017-09-21 21:38:34 +00:00
ostree-bootloader.c tree-wide: Remove Emacs modelines 2017-09-21 21:38:34 +00:00
ostree-bootloader.h tree-wide: Remove Emacs modelines 2017-09-21 21:38:34 +00:00
ostree-chain-input-stream.c Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-chain-input-stream.h Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-checksum-input-stream.c Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-checksum-input-stream.h Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-cmdprivate.c Add concept of "staged" deployment 2018-04-12 14:55:12 +00:00
ostree-cmdprivate.h Add concept of "staged" deployment 2018-04-12 14:55:12 +00:00
ostree-core-private.h lib/checkout: add filter API to skip over files 2018-02-06 15:38:20 +00:00
ostree-core.c ostree: introduce PAYLOAD_LINK object type 2018-03-07 18:28:59 +00:00
ostree-core.h ostree: introduce PAYLOAD_LINK object type 2018-03-07 18:28:59 +00:00
ostree-deployment-private.h Add concept of "staged" deployment 2018-04-12 14:55:12 +00:00
ostree-deployment.c Add concept of "staged" deployment 2018-04-12 14:55:12 +00:00
ostree-deployment.h Add concept of "staged" deployment 2018-04-12 14:55:12 +00:00
ostree-diff.c Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-diff.h Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-dummy-enumtypes.c Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-dummy-enumtypes.h Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-enumtypes.c.template build: Add -Werror=undef by default, fix fallout 2017-11-06 15:30:14 +00:00
ostree-enumtypes.h.template Make enum generation private by default, export stub symbol 2016-05-12 17:15:50 +00:00
ostree-fetcher-curl.c lib/fetcher: Allow clients to append to User-Agent 2018-03-16 19:21:31 +00:00
ostree-fetcher-soup.c lib/fetcher: Allow clients to append to User-Agent 2018-03-16 19:21:31 +00:00
ostree-fetcher-uri.c Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-fetcher-util.c Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-fetcher-util.h Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-fetcher.h lib/fetcher: Allow clients to append to User-Agent 2018-03-16 19:21:31 +00:00
ostree-gpg-verifier.c Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-gpg-verifier.h Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-gpg-verify-result-private.h Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-gpg-verify-result.c Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-gpg-verify-result.h Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-impl-system-generator.c Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-kernel-args.c tree-wide: Use autoptr for OstreeKernelArgs 2017-10-25 01:48:56 +00:00
ostree-kernel-args.h tree-wide: Use autoptr for OstreeKernelArgs 2017-10-25 01:48:56 +00:00
ostree-libarchive-input-stream.c Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-libarchive-input-stream.h Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-libarchive-private.h Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-linuxfsutil.c Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-linuxfsutil.h Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-lzma-common.c Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-lzma-common.h Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-lzma-compressor.c Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-lzma-compressor.h Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-lzma-decompressor.c Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-lzma-decompressor.h Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-metalink.c Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-metalink.h Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-mutable-tree.c Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-mutable-tree.h Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-ref.c Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-ref.h Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-remote-private.h Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-remote.c lib/remote: Fix memory leak 2018-03-02 18:49:44 +00:00
ostree-remote.h Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-repo-checkout.c repo: Create uncompressed-object-cache dir dynamically 2018-02-08 21:27:11 +00:00
ostree-repo-commit.c commit, payload-reflink: do not write to the parent repo 2018-04-13 21:52:53 +00:00
ostree-repo-deprecated.h Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-repo-file-enumerator.c Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-repo-file-enumerator.h Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-repo-file.c Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-repo-file.h Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-repo-finder-avahi-parser.c Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-repo-finder-avahi-private.h Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-repo-finder-avahi.c avahi: Don't complain with g_warning if the daemon wasn't running 2018-04-18 19:39:33 +00:00
ostree-repo-finder-avahi.h Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-repo-finder-config.c lib/repo: Add timestamps to OstreeRepoFinderResult 2018-04-03 15:50:40 +00:00
ostree-repo-finder-config.h Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-repo-finder-mount.c lib/repo: Add timestamps to OstreeRepoFinderResult 2018-04-03 15:50:40 +00:00
ostree-repo-finder-mount.h Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-repo-finder-override.c lib/repo: Add timestamps to OstreeRepoFinderResult 2018-04-03 15:50:40 +00:00
ostree-repo-finder-override.h Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-repo-finder.c lib/repo: Add timestamps to OstreeRepoFinderResult 2018-04-03 15:50:40 +00:00
ostree-repo-finder.h lib/repo: Add timestamps to OstreeRepoFinderResult 2018-04-03 15:50:40 +00:00
ostree-repo-libarchive.c Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-repo-private.h commit: add logic for .payload-link 2018-03-07 18:28:59 +00:00
ostree-repo-prune.c commit: add logic for .payload-link 2018-03-07 18:28:59 +00:00
ostree-repo-pull-private.h Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-repo-pull.c avahi: Don't complain with g_warning if the daemon wasn't running 2018-04-18 19:39:33 +00:00
ostree-repo-refs.c lib/core: Support <remote>: syntax when listing refs 2018-03-16 19:18:08 +00:00
ostree-repo-static-delta-compilation-analysis.c Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-repo-static-delta-compilation.c lib/deltas: Squash some GCC maybe-uninitialized warnings 2018-03-22 19:30:16 +00:00
ostree-repo-static-delta-core.c lib/deltas: Some misc declare-and-initialize porting 2018-03-23 18:16:35 +00:00
ostree-repo-static-delta-private.h Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-repo-static-delta-processing.c Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-repo-traverse.c lib/repo: Add ostree_repo_traverse_commit_union_with_parents 2018-04-14 15:36:21 +00:00
ostree-repo.c lib: Fix a few comments 2018-03-29 22:01:51 +00:00
ostree-repo.h lib/repo: Add ostree_repo_traverse_commit_union_with_parents 2018-04-14 15:36:21 +00:00
ostree-rollsum.c Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-rollsum.h Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-sepolicy-private.h Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-sepolicy.c Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-sepolicy.h Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-soup-form.c lib/repo: Add (transfer) annotations to various GHashTable arguments 2017-11-14 23:13:14 +00:00
ostree-soup-uri.c lib/repo: Add (transfer) annotations to various GHashTable arguments 2017-11-14 23:13:14 +00:00
ostree-soup-uri.h libcurl backend 2017-02-09 16:37:45 +00:00
ostree-sysroot-cleanup.c lib/sysroot: Move staged into deployment list, rework handling 2018-04-18 18:59:15 +00:00
ostree-sysroot-deploy.c lib/sysroot: Move staged into deployment list, rework handling 2018-04-18 18:59:15 +00:00
ostree-sysroot-private.h Add concept of "staged" deployment 2018-04-12 14:55:12 +00:00
ostree-sysroot-upgrader.c Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-sysroot-upgrader.h Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-sysroot.c lib/sysroot: Move staged into deployment list, rework handling 2018-04-18 18:59:15 +00:00
ostree-sysroot.h Add concept of "staged" deployment 2018-04-12 14:55:12 +00:00
ostree-tls-cert-interaction.c Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-tls-cert-interaction.h Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-types.h Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-varint.c Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-varint.h Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-version.h.in tree-wide: Remove Emacs modelines 2017-09-21 21:38:34 +00:00
ostree.h Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00

README.md

Repository design

At the heart of OSTree is the repository. It's very similar to git, with the idea of content-addressed storage. However, OSTree is designed to store operating system binaries, not source code. There are several consequences to this. The key difference as compared to git is that the OSTree definition of "content" includes key Unix metadata such as owner uid/gid, as well as all extended attributes.

Essentially OSTree is designed so that if two files have the same OSTree checksum, it's safe to replace them with a hard link. This fundamental design means that an OSTree repository imposes negligible overhead. In contrast, a git repository stores copies of zlib-compressed data.

Key differences versus git

  • As mentioned above, extended attributes and owner uid/gid are versioned
  • Optimized for Unix hardlinks between repository and checkout
  • SHA256 instead of SHA1
  • Support for empty directories

Binary files

While this is still in planning, I plan to heavily optimize OSTree for versioning ELF operating systems. In industry jargon, this would be "content-aware storage".

Trimming history

OSTree will also be optimized to trim intermediate history; in theory one can regenerate binaries from corresponding (git) source code, so we don't need to keep all possible builds over time.

MILESTONE 1

  • Basic pack files (like git)

MILESTONE 2

  • Store checksums as ay
  • Drop version/metadata from tree/dirmeta objects
  • Add index size to superindex, pack size to index
    • So pull can calculate how much we need to download
  • Split pack files into metadata/data
  • pull: Extract all we can from each packfile one at a time, then delete it
  • Restructure repository so that links can be generated as a cache; i.e. objects/raw, pack files are now the canonical
  • For files, checksum combination of metadata variant + raw data
    • i.e. there is only OSTREE_OBJECT_TYPE_FILE (again)

MILESTONE 3

  • Drop archive/raw distinction - archive repositories always generate packfiles per commit
  • Include git packv4 ideas:
    • metadata packfiles have string dictionary (tree filenames and checksums)
    • data packfiles match up similar objects
  • Rolling checksums for partitioning large files? Kernel debuginfo
  • Improved pack clustering
    • file fingerprinting?
  • ELF-x86 aware deltas

git: http://git-scm.com/ Venti: http://plan9.bell-labs.com/magic/man2html/6/venti Elephant FS: http://www.hpl.hp.com/personal/Alistair_Veitch/papers/elephant-hotos/index.html

Compression

xdelta: http://xdelta.org/ Bsdiff: http://www.daemonology.net/bsdiff/ xz: http://tukaani.org/xz/