Bug 178534 - Missing rules causes hal and module loading problems
Missing rules causes hal and module loading problems
Product: Fedora
Classification: Fedora
Component: udev (Show other bugs)
All Linux
medium Severity high
: ---
: ---
Assigned To: Harald Hoyer
Depends On:
Blocks: FC5Blocker
  Show dependency treegraph
Reported: 2006-01-21 10:15 EST by David Zeuthen
Modified: 2013-03-05 22:44 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-01-24 11:40:46 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description David Zeuthen 2006-01-21 10:15:18 EST
While discussing a patch that broke hal, Kay Sievers (upstream udev maintainer)
pointed out (he checked our latest RPM) we're missing rules to cope with the
kernel. Pasting from IRC:

kay you should add this as 05-udev-early.rules:
kay # sysfs is populated after the event is sent
kay ACTION=="add", DEVPATH=="/devices/*", ENV{PHYSDEVBUS}=="?*",
kay ACTION=="add", SUBSYSTEM=="scsi", WAIT_FOR_SYSFS="ioerr_cnt"
kay ACTION=="add", SUBSYSTEM=="net", WAIT_FOR_SYSFS="address"
kay otherwise a lot of stuff does not work
kay including udev itself can't use BUS=="... 

Please fix this soon... Thanks!
Comment 1 Bill Nottingham 2006-01-22 23:24:13 EST
What specifically is broken here that users would notice?
Comment 2 David Zeuthen 2006-01-23 09:04:54 EST
Without these rules the events come out of order which messes
up the logic in HAL to e.g. reliably detect hotplugged drives.
Kay (he is the upstream udev maintainer now) also says it
affects module loading etc. I've seen noise on f-d-l about
this, maybe this is the root cause... I dunno though. I do
know that with

 ACTION=="add", SUBSYSTEM=="scsi", WAIT_FOR_SYSFS="ioerr_cnt"

hal CVS was broken (0.5.6 which is in rawhide was fine but
you never know..)

Suggest to talk to kay, he normally hangs hangs out on #hal
on Freenode. 

Also suggest to look at the udev rules that e.g. SUSE ships.

One of these days we should also rip out the hotplug.d and
dev.d interfaces from udev - these interfaces are old and
broken though interestingly enough we still rely on them
in hal. This will change in the next hal release where we
don't install a helper in hotplug.d but rather install a
udev rule to use SOCKET+=...
Comment 3 Bill Nottingham 2006-01-23 10:48:29 EST
Still, this implies some sort of kernel bug, it seems - you shouldn't need to
wait for the bus in sysfs if you get a event for that bus. Mmmm, racy.
Comment 4 David Zeuthen 2006-01-23 11:31:29 EST
Maybe. Talk to Kay.

Note You need to log in before you can comment on or make changes to this bug.