From 2f1172f311fbe5e7b753d240e8a2884197be65d2 Mon Sep 17 00:00:00 2001 From: Anis Eleuch Date: Mon, 12 Aug 2024 14:23:01 +0100 Subject: [PATCH] heal: Add Finished bool field to drive healing info Currently .healing.bin is removed when healing is finished. However, we are going to preserve .healing.bin to keep historical information. So adding Finished as a boolean flag to indicate that healing of a drive is finished will be needed. --- heal-commands.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/heal-commands.go b/heal-commands.go index 3e9555e..ca7ae9c 100644 --- a/heal-commands.go +++ b/heal-commands.go @@ -380,9 +380,12 @@ type HealingDisk struct { // Filled on startup/restarts. QueuedBuckets []string `json:"queued_buckets"` - // Filled during heal. HealedBuckets []string `json:"healed_buckets"` + + // Healing of this drive is finished, successfully or not + Finished bool `json:"finished"` + // future add more tracking capabilities }