Messages in this thread Patch in this message | ![/](/images/icornerl.gif) | | Subject | Re: [2.6.37-rc1] udevd-event prints errors. | From | Tetsuo Handa <> | Date | Sat, 6 Nov 2010 23:51:31 +0900 |
| |
Hello.
Kay Sievers wrote: > >> Other than that, everything works ok, right? > > Right. > > It's something that should be fixed in the udev rules. This is the > fixed line, we used in later releases. It adds an additional match to > prevent the warning you see: > SUBSYSTEM=="scsi", KERNEL=="[0-9]*:[0-9]*", WAIT_FOR_SYSFS="ioerr_cnt" > > All of that is not needed with current kernels, it was a hacky > workaround for broken sysfs/event timing issues we had years ago.
I see. Applying below patch solved these error messages on my CentOS 5.5 environment.
Thank you.
--- /etc/udev/rules.d/05-udev-early.rules +++ /etc/udev/rules.d/05-udev-early.rules @@ -1,7 +1,7 @@ # sysfs is populated after the event is sent ACTION=="add", DEVPATH=="/devices/*", ENV{PHYSDEVBUS}=="?*", WAIT_FOR_SYSFS="bus" ACTION=="add", SUBSYSTEM=="net", WAIT_FOR_SYSFS="address" -ACTION=="add", SUBSYSTEM=="scsi", WAIT_FOR_SYSFS="ioerr_cnt" +ACTION=="add", SUBSYSTEM=="scsi", KERNEL=="[0-9]*:[0-9]*", WAIT_FOR_SYSFS="ioerr_cnt" # ignore these events until someone needs them SUBSYSTEM=="drivers", OPTIONS="ignore_device"
| ![\](/images/icornerr.gif) |