Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 152511 Details for
Bug 220993
mdev from busybox populate block devices wrong with new kernel 2.6.25
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
my path, that fix this bug
busybox-1.10.1-my_mdev.patch (text/plain), 756 bytes, created by
Andrej Gelenberg
on 2008-05-08 19:43:40 UTC
(
hide
)
Description:
my path, that fix this bug
Filename:
MIME Type:
Creator:
Andrej Gelenberg
Created:
2008-05-08 19:43:40 UTC
Size:
756 bytes
patch
obsolete
>--- util-linux/mdev.c >+++ util-linux/mdev.c >@@ -71,9 +71,17 @@ > > /* Determine device name, type, major and minor */ > device_name = bb_basename(path); >- /* http://kernel.org/doc/pending/hotplug.txt says that only >- * "/sys/block/..." is for block devices. "sys/bus" etc is not! */ >- type = (strncmp(&path[5], "block/", 6) == 0 ? S_IFBLK : S_IFCHR); >+ // in kernel 2.6.25 block devices are in /sys/class/block and in /sys/block >+ if ( strncmp(&path[5], "block/", 6) && strncmp(&path[5], "class/block/", 12) ) >+ // wenn first or second strncmp return 0 (aslo path match block or class/block) >+ // value of expresion will be false (0) >+ { >+ type = S_IFCHR; >+ } >+ else >+ { >+ type = S_IFBLK; >+ } > > 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 Raw
Actions:
View
Attachments on
bug 220993
: 152511