ostree/src/libotutil
Colin Walters f81e3c6f03 lib/commit: Use more direct path for regfile commits
In the non-`CONSUME` path for regfiles (which happens currently for
`bare-user`), we go to a lot of contortions to make an "object stream",
only to immediately parse it again.

Fixing this will also enable the `G_IS_FILE_DESCRIPTOR_BASED()` fast path in
commit, since the input stream will actually reference the file descriptor and
not be an `_OstreeChainInputStream`.

There's a slight concern here in that we're no longer checksumming *literally*
the object stream passed in for the stream case, but I mention in the comment,
the data should be the same, and if it's not somehow we're not adding risk,
since the checksum is still covering the data we actually care about.

Prep for further changes to break up the `write_content_object()` path into
separate paths for archive, as well as regfile vs symlink in non-archive.

Closes: #1371
Approved by: jlebon
2017-12-12 14:17:20 +00:00
..
ot-checksum-instream.c lib/commit: Use more direct path for regfile commits 2017-12-12 14:17:20 +00:00
ot-checksum-instream.h lib/commit: Use more direct path for regfile commits 2017-12-12 14:17:20 +00:00
ot-checksum-utils.c lib/repo: Update summary code to use newer hashing API 2017-10-18 13:27:11 +00:00
ot-checksum-utils.h lib/repo: Update summary code to use newer hashing API 2017-10-18 13:27:11 +00:00
ot-fs-utils.c tree-wide: Update to new libglnx fd APIs 2017-10-11 19:26:10 +00:00
ot-fs-utils.h Deduplicate and fix up our use of mmap() 2017-10-04 20:42:39 +00:00
ot-gio-utils.c tree-wide: Remove Emacs modelines 2017-09-21 21:38:34 +00:00
ot-gio-utils.h tree-wide: Remove Emacs modelines 2017-09-21 21:38:34 +00:00
ot-gpg-utils.c tree-wide: Remove Emacs modelines 2017-09-21 21:38:34 +00:00
ot-gpg-utils.h tree-wide: Remove Emacs modelines 2017-09-21 21:38:34 +00:00
ot-keyfile-utils.c tree-wide: Remove Emacs modelines 2017-09-21 21:38:34 +00:00
ot-keyfile-utils.h tree-wide: Remove Emacs modelines 2017-09-21 21:38:34 +00:00
ot-opt-utils.c tree-wide: Remove Emacs modelines 2017-09-21 21:38:34 +00:00
ot-opt-utils.h tree-wide: Remove Emacs modelines 2017-09-21 21:38:34 +00:00
ot-tool-util.c tree-wide: Remove Emacs modelines 2017-09-21 21:38:34 +00:00
ot-tool-util.h tree-wide: Remove Emacs modelines 2017-09-21 21:38:34 +00:00
ot-unix-utils.c lib/utils: Check for invalid UTF-8 in filenames 2017-10-14 00:47:40 +00:00
ot-unix-utils.h tree-wide: Remove Emacs modelines 2017-09-21 21:38:34 +00:00
ot-variant-builder.c Add OtVariantBuilder 2017-10-27 21:49:26 +00:00
ot-variant-builder.h Add OtVariantBuilder 2017-10-27 21:49:26 +00:00
ot-variant-utils.c lib/deltas: Move variant read helper into the deltas code 2017-10-05 15:41:00 +00:00
ot-variant-utils.h lib/deltas: Move variant read helper into the deltas code 2017-10-05 15:41:00 +00:00
otutil.h Add OtVariantBuilder 2017-10-27 21:49:26 +00:00