Abort spindown when filesystem flush fails

This commit is contained in:
Andrea Mazzoleni 2026-09-28 14:21:33 +02:00
parent d210e95997
commit 57e15416ae
6 changed files with 54 additions and 12 deletions

View file

@ -365,7 +365,7 @@ void state_thermal_cooldown(struct snapraid_state* state)
* effective; it does not allow the operation to resume while a measurable disk
* is still above the temperature limit.
*/
state_device(state, DEVICE_DOWN, 0);
state_device_force(state, DEVICE_DOWN, 0, 1);
msg_progress("Cooldown...\n");
@ -376,7 +376,7 @@ void state_thermal_cooldown(struct snapraid_state* state)
/* every 30 seconds spin down any disk that was spunup */
while (sleep_time > 0 && !os_signal_interrupt()) {
state_device(state, DEVICE_DOWNIFUP, 0);
state_device_force(state, DEVICE_DOWNIFUP, 0, 1);
sleep(30);
sleep_time -= 30;