From 3f0c194a2fe7d0c3d48f394d0d241d4e8d488387 Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Wed, 12 Aug 2026 15:01:00 +0200 Subject: [PATCH] Fix snapshot commit failure propagation to ensure sync exits with error --- cmdline/snapraid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmdline/snapraid.c b/cmdline/snapraid.c index 4b37a723..dd926ed4 100644 --- a/cmdline/snapraid.c +++ b/cmdline/snapraid.c @@ -1865,7 +1865,7 @@ int snapraid_main(int argc, char* argv[]) /* commit the snapshot as stable */ if (ret == 0) { - state_snapshot_commit(&state); + ret = state_snapshot_commit(&state); state_snapshot_cleanup(&state); } } else if (operation == OPERATION_DRY) {