ostree/src/libostree
Colin Walters cb251ae5ca sysroot: Move ostree_sysroot_origin_new_from_refspec here
Rather than having it live in admin.  This is useful for other
consumers like the test suite.
2013-10-03 18:34:24 -04: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
ostree-1.pc.in Install a shared library 2013-07-26 19:25:07 -04:00
ostree-bootconfig-parser.c Move Deployment and BootconfigParser into libostree 2013-09-15 15:06:31 -04:00
ostree-bootconfig-parser.h Move Deployment and BootconfigParser into libostree 2013-09-15 15:06:31 -04:00
ostree-bootloader-syslinux.c libostree: Make OstreeBootloader private 2013-09-15 20:26:13 -04:00
ostree-bootloader-syslinux.h libostree: Make OstreeBootloader private 2013-09-15 20:26:13 -04:00
ostree-bootloader-uboot.c libostree: Make OstreeBootloader private 2013-09-15 20:26:13 -04:00
ostree-bootloader-uboot.h libostree: Make OstreeBootloader private 2013-09-15 20:26:13 -04:00
ostree-bootloader.c libostree: Make OstreeBootloader private 2013-09-15 20:26:13 -04:00
ostree-bootloader.h libostree: Make OstreeBootloader private 2013-09-15 20:26:13 -04: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 Switch to #pragma once for headers 2013-07-09 18:53:22 -04:00
ostree-core-private.h core: Make ostree_get_relative_object_path() private 2013-09-29 20:17:18 -04:00
ostree-core.c core: Make ostree_get_relative_object_path() private 2013-09-29 20:17:18 -04:00
ostree-core.h core: Make ostree_get_relative_object_path() private 2013-09-29 20:17:18 -04:00
ostree-deployment.c sysroot: Update some annotations 2013-10-03 18:34:04 -04:00
ostree-deployment.h Move Deployment and BootconfigParser into libostree 2013-09-15 15:06:31 -04:00
ostree-diff.c repo-file: s/content_checksum/contents_checksum/ 2013-09-08 11:50:51 -04:00
ostree-diff.h core: Fix all introspection warnings 2013-07-27 10:13:30 -04:00
ostree-fetcher.c fetcher: Fix previous commit 2013-09-25 11:59:43 -04:00
ostree-fetcher.h libostree: Change synchronous fetching API to return a stream 2013-09-02 14:48:21 -04:00
ostree-gpg-verifier.c pull: Verify commits with gpg signatures from detached metadata 2013-09-29 14:49:47 -04:00
ostree-gpg-verifier.h pull: Verify commits with gpg signatures from detached metadata 2013-09-29 14:49:47 -04:00
ostree-libarchive-input-stream.c Install a shared library 2013-07-26 19:25:07 -04:00
ostree-libarchive-input-stream.h Switch to #pragma once for headers 2013-07-09 18:53:22 -04:00
ostree-mutable-tree.c doc: Add OstreeMutableTree, other minor doc updates 2013-09-12 23:53:13 -04:00
ostree-mutable-tree.h Switch to #pragma once for headers 2013-07-09 18:53:22 -04:00
ostree-ordered-hash.c libostree: Nearly complete move of API into OstreeSysroot 2013-09-15 20:16:20 -04:00
ostree-ordered-hash.h libostree: Nearly complete move of API into OstreeSysroot 2013-09-15 20:16:20 -04:00
ostree-repo-checkout.c checkout: Fix leak when doing uncompressed cache + copying checkouts 2013-09-13 17:15:30 -04:00
ostree-repo-commit.c repo: Only delete temp files older than a day 2013-10-02 18:17:27 -04:00
ostree-repo-file-enumerator.c Install a shared library 2013-07-26 19:25:07 -04:00
ostree-repo-file-enumerator.h Switch to #pragma once for headers 2013-07-09 18:53:22 -04:00
ostree-repo-file.c repo: Change the pairs of checksums to instead be based on OstreeRepoFiles 2013-09-09 22:51:33 -04:00
ostree-repo-file.h repo-file: Base OstreeRepoFile on trees instead of commits 2013-09-09 22:31:59 -04:00
ostree-repo-libarchive.c repo-libarchive: Apply commit modifiers to libarchive archives as well 2013-09-09 22:51:43 -04:00
ostree-repo-private.h doc: Add OstreeMutableTree, other minor doc updates 2013-09-12 23:53:13 -04:00
ostree-repo-prune.c core: Add detached metadata, readd metadata to commits 2013-09-09 17:01:32 -04:00
ostree-repo-pull.c core: Make ostree_get_relative_object_path() private 2013-09-29 20:17:18 -04:00
ostree-repo-refs.c Move ref writing to be transaction-based 2013-09-06 20:31:12 -04:00
ostree-repo-traverse.c Fix warnings about unused variables 2013-08-30 14:23:45 -04:00
ostree-repo.c repo: Enumerate objects using openat() too, make more efficient 2013-09-30 08:51:25 -04:00
ostree-repo.h pull: Verify commits with gpg signatures from detached metadata 2013-09-29 14:49:47 -04:00
ostree-sysroot-cleanup.c sysroot: Avoid bad double-free 2013-10-03 18:34:24 -04:00
ostree-sysroot-deploy.c sysroot: Ensure we create /boot/loader.%d/entries even if there are no deployments 2013-10-03 18:34:24 -04:00
ostree-sysroot-private.h sysroot: Support more arbitrary deployment changes 2013-10-02 20:18:06 -04:00
ostree-sysroot.c sysroot: Move ostree_sysroot_origin_new_from_refspec here 2013-10-03 18:34:24 -04:00
ostree-sysroot.h sysroot: Move ostree_sysroot_origin_new_from_refspec here 2013-10-03 18:34:24 -04:00
ostree-types.h libostree: Add new OstreeSysroot class 2013-09-15 14:33:57 -04:00
ostree.h Move Deployment and BootconfigParser into libostree 2013-09-15 15:06:31 -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/