From 9bb73043c311fc855dc09273e2dc5687c6ae5ebe Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Mon, 17 Aug 2026 17:25:35 +0200 Subject: [PATCH] Fix sopen_write call signature in HAVE_MT_WRITE block by adding stream flags --- cmdline/state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmdline/state.c b/cmdline/state.c index 69dc2479..e26124b6 100644 --- a/cmdline/state.c +++ b/cmdline/state.c @@ -4278,7 +4278,7 @@ static void state_write_content(struct snapraid_state* state, uint32_t* out_crc) } } - f = sopen_write(tmp); + f = sopen_write(tmp, STREAM_FLAGS_SEQUENTIAL | STREAM_FLAGS_CRC); if (f == 0) { /* LCOV_EXCL_START */ log_fatal(errno, "Error opening the temporary content file '%s'. %s.\n", tmp, strerror(errno));