/systemd-251/src/basic/ |
D | compress.c | 552 int compress_stream_xz(int fdf, int fdt, uint64_t max_bytes, uint64_t *ret_uncompressed_size) { in compress_stream_xz() argument 573 if (max_bytes != UINT64_MAX && (uint64_t) m > max_bytes) in compress_stream_xz() 574 m = (size_t) max_bytes; in compress_stream_xz() 585 if (max_bytes != UINT64_MAX) { in compress_stream_xz() 586 assert(max_bytes >= (uint64_t) n); in compress_stream_xz() 587 max_bytes -= n; in compress_stream_xz() 631 int compress_stream_lz4(int fdf, int fdt, uint64_t max_bytes, uint64_t *ret_uncompressed_size) { in compress_stream_lz4() argument 682 if (max_bytes != UINT64_MAX && total_out > (size_t) max_bytes) in compress_stream_lz4() 684 … "Compressed stream longer than %" PRIu64 " bytes", max_bytes); in compress_stream_lz4() 717 int decompress_stream_xz(int fdf, int fdt, uint64_t max_bytes) { in decompress_stream_xz() argument [all …]
|
D | compress.h | 55 int compress_stream_xz(int fdf, int fdt, uint64_t max_bytes, uint64_t *ret_uncompressed_size); 56 int compress_stream_lz4(int fdf, int fdt, uint64_t max_bytes, uint64_t *ret_uncompressed_size); 57 int compress_stream_zstd(int fdf, int fdt, uint64_t max_bytes, uint64_t *ret_uncompressed_size); 86 static inline int compress_stream(int fdf, int fdt, uint64_t max_bytes, uint64_t *ret_uncompressed_… in compress_stream() argument 89 return compress_stream_zstd(fdf, fdt, max_bytes, ret_uncompressed_size); in compress_stream() 91 return compress_stream_lz4(fdf, fdt, max_bytes, ret_uncompressed_size); in compress_stream() 93 return compress_stream_xz(fdf, fdt, max_bytes, ret_uncompressed_size); in compress_stream() 112 int decompress_stream(const char *filename, int fdf, int fdt, uint64_t max_bytes);
|
/systemd-251/src/test/ |
D | test-copy.c | 226 static void test_copy_bytes_regular_file_one(const char *src, bool try_reflink, uint64_t max_bytes)… in test_copy_bytes_regular_file_one() argument 233 log_info("%s try_reflink=%s max_bytes=%" PRIu64, __func__, yes_no(try_reflink), max_bytes); in test_copy_bytes_regular_file_one() 244 r = copy_bytes(fd, fd2, max_bytes, try_reflink ? COPY_REFLINK : 0); in test_copy_bytes_regular_file_one() 245 if (max_bytes == UINT64_MAX) in test_copy_bytes_regular_file_one() 252 assert_se((uint64_t) buf2.st_size == MIN((uint64_t) buf.st_size, max_bytes)); in test_copy_bytes_regular_file_one() 254 if (max_bytes < UINT64_MAX) in test_copy_bytes_regular_file_one() 256 assert_se(ftruncate(fd2, max_bytes + 1) == 0); in test_copy_bytes_regular_file_one() 260 r = copy_bytes(fd2, fd3, max_bytes, try_reflink ? COPY_REFLINK : 0); in test_copy_bytes_regular_file_one() 261 if (max_bytes == UINT64_MAX) in test_copy_bytes_regular_file_one() 273 if (max_bytes == UINT64_MAX) in test_copy_bytes_regular_file_one() [all …]
|
D | test-compress.c | 44 typedef int (compress_stream_t)(int fdf, int fdt, uint64_t max_bytes, uint64_t *uncompressed_size);
|
/systemd-251/src/shared/ |
D | copy.c | 153 uint64_t max_bytes, in copy_bytes_full() argument 192 if (foffset == 0 && toffset == 0 && max_bytes == UINT64_MAX) in copy_bytes_full() 195 …r = btrfs_clone_range(fdf, foffset, fdt, toffset, max_bytes == UINT64_MAX ? 0 : max_bytes); /* par… in copy_bytes_full() 200 if (max_bytes == UINT64_MAX) { in copy_bytes_full() 218 t = lseek(fdf, foffset + max_bytes, SEEK_SET); in copy_bytes_full() 222 t = lseek(fdt, toffset + max_bytes, SEEK_SET); in copy_bytes_full() 236 if (max_bytes <= 0) in copy_bytes_full() 243 if (max_bytes != UINT64_MAX && m > max_bytes) in copy_bytes_full() 244 m = max_bytes; in copy_bytes_full() 447 if (max_bytes != UINT64_MAX) { in copy_bytes_full() [all …]
|
D | copy.h | 66 int copy_bytes_full(int fdf, int fdt, uint64_t max_bytes, CopyFlags copy_flags, void **ret_remains,… 67 static inline int copy_bytes(int fdf, int fdt, uint64_t max_bytes, CopyFlags copy_flags) { in copy_bytes() argument 68 return copy_bytes_full(fdf, fdt, max_bytes, copy_flags, NULL, NULL, NULL, NULL); in copy_bytes()
|
/systemd-251/src/basic/linux/ |
D | pkt_sched.h | 647 __s32 max_bytes; member
|