Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 153091 Details for
Bug 212031
genkernel and 2.6.25* with busybox makes all device nodes as unbootable character devices
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch using strstr function to check for block devices
busybox-21977-mdev-chrblk.patch (text/plain), 709 bytes, created by
virdiq
on 2008-05-14 06:42:11 UTC
(
hide
)
Description:
Proposed patch using strstr function to check for block devices
Filename:
MIME Type:
Creator:
virdiq
Created:
2008-05-14 06:42:11 UTC
Size:
709 bytes
patch
obsolete
>--- busybox-svn21977/util-linux/mdev.c 2008-05-14 15:20:18.000000000 +1000 >+++ busybox/util-linux/mdev.c 2008-05-14 16:24:22.000000000 +1000 >@@ -72,12 +72,10 @@ > /* http://kernel.org/doc/pending/hotplug.txt says that only > * "/sys/block/..." is for block devices. "/sys/bus" etc is not! > * Since kernel 2.6.25 block devices are also in /sys/class/block. */ >- /* TODO: would it be acceptable to just use strstr(path, "/block/")? */ >- if (strncmp(&path[5], "class/block/"+6, 6) != 0 >- && strncmp(&path[5], "class/block/", 12) != 0) >- type = S_IFCHR; >- else >+ if (strstr(path, "/block/") > type = S_IFBLK; >+ else >+ type = S_IFCHR; > > if (ENABLE_FEATURE_MDEV_CONF) { > FILE *fp;
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 212031
:
145057
|
145058
| 153091