Bug 176756

Summary: hal (platform_bus_device) fails to parse floppy device hotplug events
Product: [Fedora] Fedora Reporter: Jochen Eisinger <bt-bugzilla-redhat-com>
Component: halAssignee: David Zeuthen <davidz>
Status: CLOSED INSUFFICIENT_DATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 3CC: mattdm, mclasen
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-02-13 02:55:40 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jochen Eisinger 2006-01-01 16:47:25 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b1) Gecko/20050227

Description of problem:
the hald/linux/platform_bus_device.c excpects the floppy sysfs entry to be of the form floppy0 (just search this file for floppy%d) while the linux kernel names the device floppy.0 (see drivers/base/platform.c:platform_device_register)

Consequently, the hald ignores the floppy related events (which results in a mount point for /dev/fd0 missing in my fstab)

Replacing the sscanf() patterns in platform_bus_device.c with floppy.%d fixed this problem for me.

I'm running linux 2.6.12-1.1381_FC3 btw, but this problem exists for quite some time.

Version-Release number of selected component (if applicable):
hal-0.4.7-1.FC3

How reproducible:
Always

Steps to Reproduce:
1. start hald with --verbose
2. search the log for floppy
3.
  

Actual Results:  17:12:06.698 [I] linux/osspec.c:795: handling /sys/devices/platform/floppy.0 platform
17:12:06.710 [E] linux/common.c:744: /usr/bin/udevinfo returned 60672 for /block/fd1919903348
17:12:06.711 [E] linux/platform_bus_device.c:78: Could not get device file floppy 1919903348

(this strange fd is the result of sscanf failing and nobody caring to check... tsts)


Expected Results:  17:12:06.698 [I] linux/osspec.c:795: handling /sys/devices/platform/floppy.0 platform

(without the following error messages, and /dev/fd0 appearing in my fstab)

Additional info:

Comment 1 Matthew Miller 2006-07-10 21:12:32 UTC
Fedora Core 3 is now maintained by the Fedora Legacy project for security
updates only. If this problem is a security issue, please reopen and
reassign to the Fedora Legacy product. If it is not a security issue and
hasn't been resolved in the current FC5 updates or in the FC6 test
release, reopen and change the version to match.

Thank you!


Comment 2 petrosyan 2008-02-13 02:55:40 UTC
Fedora Core 3 is not maintained anymore.

Setting status to "INSUFFICIENT_DATA". If you can reproduce this bug in the
current Fedora release, please reopen this bug and assign it to the
corresponding Fedora version.