From 3b462fed174defce0ade71dfcef8eb8d0dbc545b 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) {