Andrea Mazzoleni
d8ea998eb2
Support native advise modes in buffered streams
2026-09-10 23:51:30 +02:00
Andrea Mazzoleni
2952ce4341
Inline buffered writes and process stream boundaries in bulk
2026-09-10 23:51:30 +02:00
Andrea Mazzoleni
e103590f21
Inline buffered reads and use memcpy for the fast path
2026-09-10 23:51:30 +02:00
Andrea Mazzoleni
5e4cca1fe3
Detect and auto-heal content replicas left at different publication generations
2026-09-07 10:56:48 +02:00
Andrea Mazzoleni
8ed0224e41
Use F_FULLFSYNC on macOS with fallback to fsync for full barrier durability
2026-09-05 10:39:07 +02:00
Andrea Mazzoleni
d592cccffb
Set stream state to EOF in sfill when reaching stream size limit
2026-08-18 23:33:58 +02:00
Andrea Mazzoleni
608393867a
Fix undefined behavior in STREAM buffer bounds checking by avoiding out-of-bounds pointer arithmetic
2026-08-18 23:33:58 +02:00
Andrea Mazzoleni
091e44afed
Handle short writes and EINTR in sflush, handle_write, and parity_write
2026-08-18 23:33:58 +02:00
Andrea Mazzoleni
05884d7aa0
Fix binary varint decoders to reject values overflowing uint32_t/uint64_t declared widths
2026-08-18 23:33:56 +02:00
Andrea Mazzoleni
bbcdb72a9f
Introduce nalloc_nofail
2026-08-18 23:33:55 +02:00
Andrea Mazzoleni
760e0660c8
Prevent integer wrap-around when checking string length in sgetbs
2026-08-18 23:33:55 +02:00
Andrea Mazzoleni
00b4cbafd0
Merge the CLI and Daemon portable interface
2026-08-18 23:33:55 +02:00
Andrea Mazzoleni
f40b2decdb
Further conversions from 32 to 64 bits
2026-08-18 23:33:54 +02:00
Andrea Mazzoleni
bfaa60890b
Avoid calling close(-1) on incomplete stream
Build / build-mac (push) Has been cancelled
Build / build-linux (push) Has been cancelled
Build / build-win (push) Has been cancelled
CodeQL Advanced / Analyze (c-cpp) (push) Has been cancelled
CodeQL Advanced / Analyze (actions) (push) Has been cancelled
2026-05-24 21:32:37 +02:00
Andrea Mazzoleni
35b5c46851
Handle the case of posix_fadvise() returning ENOENT
2026-04-09 17:56:50 +02:00
Andrea Mazzoleni
0d0431a907
Simpler Copyright string
2026-04-09 17:56:49 +02:00
Christoph Hellwig
60269a1236
Use SPDX ( https://spdx.dev/ ) tags to identify the license used for each
...
file, and a COPYING file explaining the licensing scheme, with the actual
licenses listed in the LICENSES/ directory.
2026-04-02 16:01:37 +02:00
Andrea Mazzoleni
3f9b877183
Missing of fadvise is not a fatal error
2026-03-18 11:31:44 +01:00
Andrea Mazzoleni
d3f7bf64c1
Differentiate messages in the log files if they are caused by an hardware issue
2026-02-01 20:44:36 +01:00
Andrea Mazzoleni
6a912b4726
Optimize the stream support for small text files
2026-01-11 12:01:12 +01:00
Andrea Mazzoleni
b609df78b5
Add overflow checking on the interger parsing
2021-05-24 19:43:53 +02:00
Andrea Gelmini
986e9b4131
Fix typos
2020-05-26 12:50:15 +02:00
Andrea Mazzoleni
473819467f
Improve crash resilience in Linux
...
Syncing the directory is a required step to ensure resilience.
Also create the temporary file with O_EXCL to ensure to don't
use a stale copy that may link to the original copy.
2018-06-04 22:19:10 +02:00
Andrea Mazzoleni
b86e06f415
Update to latest coverity scan
2016-10-29 08:07:11 +02:00
Andrea Mazzoleni
20e9f7de41
Ignore fadvise if it return ENOSYS
...
This happens in ARM platform because fadvise is
differently implemented by the kernel and glibc
may not support it yet.
2016-10-23 22:03:02 +02:00
Andrea Mazzoleni
9ade11483e
Fix some misuses of the MiB and MB units
2016-01-16 07:29:00 +01:00
Andrea Mazzoleni
fcf7c44197
Use different thread when writing content file
...
This should reduce the possibility that the same
memory error is going to affect all the written
content files in the same way.
2015-10-29 23:37:58 +01:00
Andrea Mazzoleni
80476c480b
Delayed CRC computation of the buffer used in writing
...
This should help to detect more memory errors when writing
the content files.
2015-10-29 22:32:07 +01:00
Andrea Mazzoleni
7e1d9138b5
Add the deplete operation at the data stream
...
It's used to read the content file up to the end to verify its CRC.
2015-10-28 19:36:24 +01:00
Andrea Mazzoleni
0ba7e649d1
Better optimized CRC call when writing the content file
...
This saves about 15% of CPU time in writing.
2015-10-08 22:09:12 +02:00
Andrea Mazzoleni
cb17124cec
Remove unused text stream functions
2015-10-04 23:17:17 +02:00
Andrea Mazzoleni
fa5f31ddf9
Move stream implementation to a specific source file
2015-02-21 09:00:34 +01:00