ostree/src/libostree
Giuseppe Scrivano 494d3535e4 Fix "make syntax-check" failures.
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2015-03-03 12:16:17 -05:00
..
README-deltas.md syntax-check: Remove empty lines at the end of file 2015-02-02 15:07:56 +01: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 core: Import bup's "rollsum" code, add a test case 2014-02-04 10:12:56 -05:00
bupsplit.h core: Import bup's "rollsum" code, add a test case 2014-02-04 10:12:56 -05:00
ostree-1.pc.in Install a shared library 2013-07-26 19:25:07 -04:00
ostree-async-progress.c libostree: Add _finish() API to async progress 2014-04-29 10:59:57 -04:00
ostree-async-progress.h syntax-check: Remove empty lines at the end of file 2015-02-02 15:07:56 +01:00
ostree-bootconfig-parser.c deploy: fdatasync() bootloader configuration files 2014-04-11 18:43:27 -04:00
ostree-bootconfig-parser.h syntax-check: Remove empty lines at the end of file 2015-02-02 15:07:56 +01:00
ostree-bootloader-grub2.c trivial: Fix typo in previous commit 2014-11-25 13:47:54 -05:00
ostree-bootloader-grub2.h syntax-check: Remove empty lines at the end of file 2015-02-02 15:07:56 +01:00
ostree-bootloader-syslinux.c syslinux: Adapt to bootloader UI changes 2014-11-10 21:31:32 -05:00
ostree-bootloader-syslinux.h syntax-check: Remove empty lines at the end of file 2015-02-02 15:07:56 +01:00
ostree-bootloader-uboot.c Add (non-atomic) support for GRUB2 + UEFI 2014-10-23 21:42:30 -04:00
ostree-bootloader-uboot.h libostree: Make OstreeBootloader private 2013-09-15 20:26:13 -04:00
ostree-bootloader.c Add (non-atomic) support for GRUB2 + UEFI 2014-10-23 21:42:30 -04:00
ostree-bootloader.h syntax-check: Remove empty lines at the end of file 2015-02-02 15:07:56 +01:00
ostree-chain-input-stream.c libostree: Fix many gtk-doc warnings 2013-08-17 08:41:31 -04:00
ostree-chain-input-stream.h core: Fix all introspection warnings 2013-07-27 10:13:30 -04:00
ostree-checksum-input-stream.c libostree: Fix many gtk-doc warnings 2013-08-17 08:41:31 -04:00
ostree-checksum-input-stream.h syntax-check: Remove empty lines at the end of file 2015-02-02 15:07:56 +01:00
ostree-cmdprivate.c syntax-check: Remove empty lines at the end of file 2015-02-02 15:07:56 +01:00
ostree-cmdprivate.h syntax-check: Remove empty lines at the end of file 2015-02-02 15:07:56 +01:00
ostree-core-private.h core: Add definitions for GPG signature metadata 2015-03-02 15:12:06 -05:00
ostree-core.c core: Fix duplication bug in _ostree_detached_metadata_append_gpg_sig() 2015-03-02 15:13:49 -05:00
ostree-core.h deltas: Use base64 for csums, add version to parts 2015-02-16 10:10:35 -05:00
ostree-deployment.c libostree: Fix ostree_deployment_clone() to also clone bootconfig 2014-03-19 09:49:55 -04:00
ostree-deployment.h syntax-check: Remove empty lines at the end of file 2015-02-02 15:07:56 +01:00
ostree-diff.c Allow creating and pulling static deltas starting from "empty" 2015-01-14 14:43:32 +01:00
ostree-diff.h syntax-check: Remove empty lines at the end of file 2015-02-02 15:07:56 +01:00
ostree-fetcher.c Change OstreeFetcher to be dirfd-relative 2015-01-14 22:12:08 -05:00
ostree-fetcher.h Change OstreeFetcher to be dirfd-relative 2015-01-14 22:12:08 -05:00
ostree-gpg-verifier.c gpg: Remove _ostree_gpg_verifier_set_homedir() 2015-03-02 12:03:04 -05:00
ostree-gpg-verifier.h gpg: Remove _ostree_gpg_verifier_set_homedir() 2015-03-02 12:03:04 -05:00
ostree-kernel-args.c ostree admin instutil set-kargs: make more flexible 2014-09-26 10:40:37 -04:00
ostree-kernel-args.h syntax-check: Remove empty lines at the end of file 2015-02-02 15:07:56 +01:00
ostree-libarchive-input-stream.c syntax-check: Remove empty lines at the end of file 2015-02-02 15:07:56 +01:00
ostree-libarchive-input-stream.h syntax-check: Remove empty lines at the end of file 2015-02-02 15:07:56 +01:00
ostree-linuxfsutil.c syntax-check: Remove empty lines at the end of file 2015-02-02 15:07:56 +01:00
ostree-linuxfsutil.h syntax-check: Remove empty lines at the end of file 2015-02-02 15:07:56 +01:00
ostree-lzma-common.c syntax-check: Remove empty lines at the end of file 2015-02-02 15:07:56 +01:00
ostree-lzma-common.h deltas: Link to liblzma, add internal API to use it 2014-04-29 10:59:57 -04:00
ostree-lzma-compressor.c Fix repeated words. 2015-01-30 15:27:36 +01:00
ostree-lzma-compressor.h deltas: Link to liblzma, add internal API to use it 2014-04-29 10:59:57 -04:00
ostree-lzma-decompressor.c deltas: Link to liblzma, add internal API to use it 2014-04-29 10:59:57 -04:00
ostree-lzma-decompressor.h deltas: Link to liblzma, add internal API to use it 2014-04-29 10:59:57 -04:00
ostree-metalink.c Change OstreeFetcher to be dirfd-relative 2015-01-14 22:12:08 -05:00
ostree-metalink.h Change OstreeFetcher to be dirfd-relative 2015-01-14 22:12:08 -05:00
ostree-mutable-tree.c doc: Add OstreeMutableTree, other minor doc updates 2013-09-12 23:53:13 -04:00
ostree-mutable-tree.h syntax-check: Remove empty lines at the end of file 2015-02-02 15:07:56 +01:00
ostree-repo-checkout.c checkout: Drop internal use of GFile * 2015-02-22 21:30:23 -05:00
ostree-repo-commit.c Fix "make syntax-check" failures. 2015-03-03 12:16:17 -05:00
ostree-repo-file-enumerator.c Install a shared library 2013-07-26 19:25:07 -04:00
ostree-repo-file-enumerator.h syntax-check: Remove empty lines at the end of file 2015-02-02 15:07:56 +01:00
ostree-repo-file.c repofile: Avoid segfault if querying child in non-directory 2014-07-21 07:58:07 -04:00
ostree-repo-file.h syntax-check: Remove empty lines at the end of file 2015-02-02 15:07:56 +01:00
ostree-repo-libarchive.c Enforce 'rdev' (device file major/minor) is 0 2014-12-19 10:20:05 -05:00
ostree-repo-private.h repo: Port hardlink-scanning code to fd-relative calls 2015-03-03 11:48:41 -05:00
ostree-repo-prune.c deltas: Prune deltas when the corresponding "to" commit vanishes 2015-02-16 10:10:35 -05:00
ostree-repo-pull.c libotutil: Remove ot_variant_new_from_bytes() 2015-03-02 15:12:06 -05:00
ostree-repo-refs.c refs: Use G_IO_ERROR_NOT_FOUND when a ref lookup fails 2015-01-06 18:47:04 -05:00
ostree-repo-static-delta-compilation-analysis.c Fix "make syntax-check" failures. 2015-03-03 12:16:17 -05:00
ostree-repo-static-delta-compilation.c static-delta: increase threshold for rollsum to 50% 2015-03-03 12:16:17 -05:00
ostree-repo-static-delta-core.c deltas: Use base64 for csums, add version to parts 2015-02-16 10:10:35 -05:00
ostree-repo-static-delta-private.h Add bsdiff support to deltas 2015-03-03 12:16:17 -05:00
ostree-repo-static-delta-processing.c Add bsdiff support to deltas 2015-03-03 12:16:17 -05:00
ostree-repo-traverse.c ostree-repo-traverse.c: Fix documentation parameter name 2015-02-23 16:41:42 -05:00
ostree-repo.c repo: Port hardlink-scanning code to fd-relative calls 2015-03-03 11:48:41 -05:00
ostree-repo.h repo: Add a new iterator traversal API for commits 2015-02-16 10:10:35 -05:00
ostree-rollsum.c deltas: Implement rollsums 2015-02-16 10:10:35 -05:00
ostree-rollsum.h Add bsdiff support to deltas 2015-03-03 12:16:17 -05:00
ostree-sepolicy.c Explicitly label .origin files as configuration 2015-01-23 12:44:06 -05:00
ostree-sepolicy.h syntax-check: Remove empty lines at the end of file 2015-02-02 15:07:56 +01:00
ostree-sysroot-cleanup.c deploy: Set the immutable bit on the deployment root 2014-06-03 13:41:48 -04:00
ostree-sysroot-deploy.c deploy: Use glnx file copy code 2015-03-03 11:48:41 -05:00
ostree-sysroot-private.h syntax-check: Remove empty lines at the end of file 2015-02-02 15:07:56 +01:00
ostree-sysroot-upgrader.c Add "unconfigured-state" concept to origin files 2014-10-03 14:03:55 -04:00
ostree-sysroot-upgrader.h syntax-check: Remove empty lines at the end of file 2015-02-02 15:07:56 +01:00
ostree-sysroot.c syntax-check: Remove empty lines at the end of file 2015-02-02 15:07:56 +01:00
ostree-sysroot.h syntax-check: Remove empty lines at the end of file 2015-02-02 15:07:56 +01:00
ostree-tls-cert-interaction.c libostree: Make OstreeTlsCertInteraction explicitly private 2014-06-09 14:04:53 -04:00
ostree-tls-cert-interaction.h libostree: Make OstreeTlsCertInteraction explicitly private 2014-06-09 14:04:53 -04:00
ostree-types.h syntax-check: Remove empty lines at the end of file 2015-02-02 15:07:56 +01:00
ostree-varint.c syntax-check: Remove empty lines at the end of file 2015-02-02 15:07:56 +01:00
ostree-varint.h syntax-check: Remove empty lines at the end of file 2015-02-02 15:07:56 +01:00
ostree.h Add an OstreeSysrootUpgrader API 2014-03-24 18:08:22 -04: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/