[ostree] generate-static-delta: Support min-fallback-size 0 to disable fallbacks
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] generate-static-delta: Support min-fallback-size 0 to disable fallbacks
- Date: Tue, 10 Nov 2015 08:52:44 +0000 (UTC)
commit 30768a979f82df4f394df9210cc7ce4052d7809e
Author: Alexander Larsson <alexl redhat com>
Date: Thu Sep 10 20:15:14 2015 +0200
generate-static-delta: Support min-fallback-size 0 to disable fallbacks
.../ostree-repo-static-delta-compilation.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/libostree/ostree-repo-static-delta-compilation.c
b/src/libostree/ostree-repo-static-delta-compilation.c
index c63942f..1208e65 100644
--- a/src/libostree/ostree-repo-static-delta-compilation.c
+++ b/src/libostree/ostree-repo-static-delta-compilation.c
@@ -1085,7 +1085,8 @@ generate_delta_lowlatency (OstreeRepo *repo,
NULL, &uncompressed_size,
cancellable, error))
goto out;
- if (uncompressed_size > builder->min_fallback_size_bytes)
+ if (builder->min_fallback_size_bytes >= 0 &&
+ uncompressed_size > builder->min_fallback_size_bytes)
fallback = TRUE;
if (fallback)
@@ -1219,7 +1220,7 @@ get_fallback_headers (OstreeRepo *self,
*
* The @params argument should be an a{sv}. The following attributes
* are known:
- * - min-fallback-size: u: Minimume uncompressed size in megabytes to use fallback
+ * - min-fallback-size: u: Minimume uncompressed size in megabytes to use fallback, 0 to disable fallbacks
* - max-chunk-size: u: Maximum size in megabytes of a delta part
* - max-bsdiff-size: u: Maximum size in megabytes to consider bsdiff compression
* for input files
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]