Skip to content

fixes SMART Status "unknown" in the smart widget and more...#1429

Merged
fichtner merged 3 commits intoopnsense:masterfrom
atl285:patch-1
Aug 23, 2019
Merged

fixes SMART Status "unknown" in the smart widget and more...#1429
fichtner merged 3 commits intoopnsense:masterfrom
atl285:patch-1

Conversation

@atl285
Copy link
Copy Markdown
Contributor

@atl285 atl285 commented Jul 28, 2019

This fixes the "Unable to detect device typ" of smartctl, because it needs the full path to the device (e.g. /dev/ada0). As second it removes white space from start of $state variable before return, which let it match in the right way in the smart_status.widget.php. And as last the additional diskinfo command let the script skip devices, where disking exits with the error 'failed, probably not a disk.'.

This fixes the "Unable to detect device typ" of smartctl, because it needs the full path to the device (e.g. /dev/ada0). As second it removes white space from start of $state variable before return, which let it match in the right way in the smart_status.widget.php. And as last the additional diskinfo command let the script skip devices, where disking exits with the error 'failed, probably not a disk.'.
@atl285 atl285 changed the title fixes SMART Status "unknown" in the smart widget fixes SMART Status "unknown" in the smart widget and more... Aug 5, 2019
replace fixed device pattern with list of disk devices detected by kernel
@atl285
Copy link
Copy Markdown
Contributor Author

atl285 commented Aug 16, 2019

The new commit should now display all disk devices (hopefully also NVMe SSDs) in status widget which are detected by kernel and have an ident information.

@fichtner fichtner self-assigned this Aug 23, 2019
@fichtner fichtner merged commit eb6e584 into opnsense:master Aug 23, 2019
@fichtner
Copy link
Copy Markdown
Member

Merged, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants