From b8ffdbd1f774939b2933ad1ee81a7b51068278df Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Mon, 17 Aug 2026 10:49:47 +0200 Subject: [PATCH] Propagate smartctl info options in Windows devtree and thermal monitoring --- cmdline/mingwapp.c | 1 + cmdline/thermal.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/cmdline/mingwapp.c b/cmdline/mingwapp.c index 2d6435b7..c5dc7be1 100644 --- a/cmdline/mingwapp.c +++ b/cmdline/mingwapp.c @@ -857,6 +857,7 @@ static int devtree(devinfo_t* parent, tommy_list* list) pathcpy(devinfo->name, sizeof(devinfo->name), parent->name); pathcpy(devinfo->smartctl, sizeof(devinfo->smartctl), parent->smartctl); + pathcpy(devinfo->smartctl_info, sizeof(devinfo->smartctl_info), parent->smartctl_info); memcpy(devinfo->smartignore, parent->smartignore, sizeof(devinfo->smartignore)); devinfo->device = vde->Extents[i].DiskNumber; pathprint(devinfo->file, sizeof(devinfo->file), "/dev/pd%" PRIu64, devinfo->device); diff --git a/cmdline/thermal.c b/cmdline/thermal.c index ced0c63c..854191e9 100644 --- a/cmdline/thermal.c +++ b/cmdline/thermal.c @@ -140,6 +140,7 @@ void state_thermal(struct snapraid_state* state, time_t now) device_name_set(entry, disk->name, 0); pathcpy(entry->mount, sizeof(entry->mount), disk->mount_point); pathcpy(entry->smartctl, sizeof(entry->smartctl), disk->smartctl); + pathcpy(entry->smartctl_info, sizeof(entry->smartctl_info), disk->smartctl_info); memcpy(entry->smartignore, disk->smartignore, sizeof(entry->smartignore)); tommy_list_insert_tail(&high, &entry->node, entry); @@ -157,6 +158,7 @@ void state_thermal(struct snapraid_state* state, time_t now) device_name_set(entry, lev_config_name(j), s); pathcpy(entry->mount, sizeof(entry->mount), state->parity[j].split_map[s].path); pathcpy(entry->smartctl, sizeof(entry->smartctl), state->parity[j].smartctl); + pathcpy(entry->smartctl_info, sizeof(entry->smartctl_info), state->parity[j].smartctl_info); memcpy(entry->smartignore, state->parity[j].smartignore, sizeof(entry->smartignore)); pathcut(entry->mount); /* remove the parity file */