The _check_smart() check:
|
grep -q "in[ _]progress" <<< "${smart_output}" && { |
|
_log "INFO: Device ${hdd} is running SMART tests -> no shutdown" |
|
return 1; } |
reports false postive on my ssd with
smartctl output:
root@omv:~# smartctl --all --nocheck=standby /dev/nvme0n1
smartctl 7.4 2024-10-15 r5620 [x86_64-linux-6.12.57+deb13-amd64] (local build)
Copyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Number: Samsung SSD 970 EVO Plus 500GB
Serial Number: S4EVNX0W462994T
Firmware Version: 2B2QEXM7
...
Self-test Log (NVMe Log 0x06)
Self-test status: No self-test in progress
Num Test_Description Status Power_on_Hours Failing_LBA NSID Seg SCT Code
0 Short Completed without error 116 - - - - -
supposedly due to line Self-test status: No self-test in progress.
The
_check_smart()check:openmediavault-autoshutdown/usr/sbin/autoshutdown
Lines 1011 to 1013 in 4d9681c
smartctloutput:supposedly due to line
Self-test status: No self-test in progress.