Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 78117 Details for
Bug 120350
ksensors: patch to show SCSI/SATA disks
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
files/ksensors-scsi-disks.patch
ksensors-scsi-disks.patch (text/plain), 729 bytes, created by
Michael Mauch
on 2006-01-25 15:28:18 UTC
(
hide
)
Description:
files/ksensors-scsi-disks.patch
Filename:
MIME Type:
Creator:
Michael Mauch
Created:
2006-01-25 15:28:18 UTC
Size:
729 bytes
patch
obsolete
>--- src/hdsensorslist.cpp.orig 2004-08-08 20:30:05.000000000 +0200 >+++ src/hdsensorslist.cpp 2006-01-15 13:55:22.000000000 +0100 >@@ -206,8 +206,11 @@ > > bool HDSensorsList::getDisks(QStringList &disks ) > { >- DIR *dir= opendir("/proc/ide"); >- if(!dir) return false; >+ DIR *dir= opendir("/sys/block"); >+ if(!dir) { >+ dir = opendir("/proc/ide"); >+ if(!dir) return false; >+ } > QString str; > struct dirent *ptr; > while((ptr= readdir(dir))) { >@@ -215,6 +218,10 @@ > str.sprintf("/dev/hd%c",ptr->d_name[2]); > disks << str; > } >+ else if(ptr->d_name[0]=='s' && ptr->d_name[1]=='d') { >+ str.sprintf("/dev/sd%c",ptr->d_name[2]); >+ disks << str; >+ } > } > closedir(dir); > return true;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 120350
:
78116
| 78117 |
87980