summaryrefslogtreecommitdiff
path: root/src/libsystemd/sd-journal/compress.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libsystemd/sd-journal/compress.c')
-rw-r--r--src/libsystemd/sd-journal/compress.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libsystemd/sd-journal/compress.c b/src/libsystemd/sd-journal/compress.c
index cb2e82667f..54a50ef035 100644
--- a/src/libsystemd/sd-journal/compress.c
+++ b/src/libsystemd/sd-journal/compress.c
@@ -100,7 +100,7 @@ int compress_blob_xz(const void *src, uint64_t src_size,
return -ENOBUFS;
*dst_size = out_pos;
- return 0;
+ return OBJECT_COMPRESSED_XZ;
#else
return -EPROTONOSUPPORT;
#endif
@@ -130,7 +130,7 @@ int compress_blob_lz4(const void *src, uint64_t src_size,
unaligned_write_le64(dst, src_size);
*dst_size = r + 8;
- return 0;
+ return OBJECT_COMPRESSED_LZ4;
#else
return -EPROTONOSUPPORT;
#endif
@@ -153,7 +153,7 @@ int compress_blob_zstd(
return zstd_ret_to_errno(k);
*dst_size = k;
- return 0;
+ return OBJECT_COMPRESSED_ZSTD;
#else
return -EPROTONOSUPPORT;
#endif
@@ -619,7 +619,7 @@ int compress_stream_xz(int fdf, int fdt, uint64_t max_bytes, uint64_t *ret_uncom
s.total_in, s.total_out,
(double) s.total_out / s.total_in * 100);
- return 0;
+ return OBJECT_COMPRESSED_XZ;
}
}
}
@@ -710,7 +710,7 @@ int compress_stream_lz4(int fdf, int fdt, uint64_t max_bytes, uint64_t *ret_unco
total_in, total_out,
(double) total_out / total_in * 100);
- return 0;
+ return OBJECT_COMPRESSED_LZ4;
#else
return -EPROTONOSUPPORT;
#endif
@@ -954,7 +954,7 @@ int compress_stream_zstd(int fdf, int fdt, uint64_t max_bytes, uint64_t *ret_unc
log_debug("ZSTD compression finished (%" PRIu64 " -> %" PRIu64 " bytes)",
in_bytes, max_bytes - left);
- return 0;
+ return OBJECT_COMPRESSED_ZSTD;
#else
return -EPROTONOSUPPORT;
#endif