mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Raw devices are now the normal device name, not prefixed with 'r'.
This commit is contained in:
parent
e3c693b9d4
commit
cc7f40abaa
1 changed files with 1 additions and 1 deletions
|
|
@ -460,7 +460,7 @@ Disk_Names()
|
|||
for (j = 0; device_list[j]; j++) {
|
||||
for (i = 0; i < MAX_NO_DISKS; i++) {
|
||||
sprintf(diskname, "%s%d", device_list[j], i);
|
||||
sprintf(disk, "/dev/r%s", diskname);
|
||||
sprintf(disk, "/dev/%s", diskname);
|
||||
if (stat(disk, &st) || !(st.st_mode & S_IFCHR))
|
||||
continue;
|
||||
if ((fd = open(disk, O_RDWR)) == -1)
|
||||
|
|
|
|||
Loading…
Reference in a new issue