Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 177884 Details for
Bug 254322
khdapsmonitor needs a patch to work with >=2.6.27 kernels
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for 2.6.27+ support
khdapsmonitor-0.1-2627.patch (text/plain), 789 bytes, created by
Arhont
on 2009-01-09 15:39:59 UTC
(
hide
)
Description:
patch for 2.6.27+ support
Filename:
MIME Type:
Creator:
Arhont
Created:
2009-01-09 15:39:59 UTC
Size:
789 bytes
patch
obsolete
>--- khdapsmonitor-0.1/src/sysfs.cpp.old 2006-06-29 20:16:10.000000000 +0100 >+++ khdapsmonitor-0.1/src/sysfs.cpp 2009-01-09 14:58:26.133559012 +0000 >@@ -63,6 +63,9 @@ > { > if(QFile("/sys/block/" + deviceList[i] + "/queue/protect").exists()) > i++; >+ // newer kernels provide a different interface >+ else if (QFile("/sys/block/" + deviceList[i] + "/device/unload_heads").exists()) >+ i++; > else > deviceList.remove(deviceList.at(i)); > } >@@ -71,5 +74,9 @@ > > bool SysFS::queueProtected(QString device) > { >+ // newer kernels provide a different interface >+ if (QFile("/sys/block/" + device + "/device/unload_heads").exists()) >+ return fileBool("/sys/block/" + device + "/device/unload_heads"); >+ else > return fileBool("/sys/block/" + device + "/queue/protect"); > }
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 254322
:
177882
| 177884