mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Apparently, "ada" drives are better treated similarly to "da" drives.
This commit is contained in:
parent
9601613ecd
commit
1c4edd12cd
1 changed files with 2 additions and 1 deletions
|
|
@ -476,7 +476,8 @@ disk_OS_get_disks(void)
|
|||
disk_entry->media = DSM_UNKNOWN;
|
||||
disk_entry->removable = SNMP_FALSE;
|
||||
|
||||
if (strncmp(disk_entry->dev_name, "da", 2) == 0) {
|
||||
if (strncmp(disk_entry->dev_name, "da", 2) == 0 ||
|
||||
strncmp(disk_entry->dev_name, "ada", 3) == 0) {
|
||||
disk_entry->media = DSM_HARDDISK;
|
||||
disk_entry->removable = SNMP_FALSE;
|
||||
} else if (strncmp(disk_entry->dev_name, "cd", 2) == 0) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue