mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Show nvme devices in SMART disk list. Fixes #9042
(cherry picked from commit 89b4d4f30576908e36d5c6b70701db2f5e7363e6)
This commit is contained in:
parent
f646afcf6e
commit
5ae720be09
@ -2602,7 +2602,7 @@ function get_smart_drive_list() {
|
||||
foreach ($disk_list as $id => $disk) {
|
||||
// We only want certain kinds of disks for S.M.A.R.T.
|
||||
// 1 is a match, 0 is no match, False is any problem processing the regex
|
||||
if (preg_match("/^(ad|da|ada).*[0-9]{1,2}$/", $disk) !== 1) {
|
||||
if (preg_match("/^(ad|da|ada|nvme).*[0-9]{1,2}$/", $disk) !== 1) {
|
||||
unset($disk_list[$id]);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user