Bug 182601

Summary: IDE zip drives
Product: [Fedora] Fedora Reporter: David Zeuthen <davidz>
Component: udevAssignee: Harald Hoyer <harald>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: mclasen
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-03-07 07:47:46 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 150222    
Description Flags
Output from 'udevmonitor -e' after inserting Zip media and doing a 'blockdev --rereadpt /dev/hdd'
output of udevmonitor -e == my udev database
50-udev.rules none

Description David Zeuthen 2006-02-23 16:48:51 UTC
There are at least two problems in the way udev handles IDE zip drives

 1. We really need to create all the 15 child device nodes in advance.. HAL
relies on that.. E.g. I only see /dev/hdd, I really ought to see /dev/hdd1
through /dev/hdd15 as well even when no media is inserted

 2. There's a loop where udev spins when I insert media and do a blockdev
--rereadpt /dev/hdd - will attach the output

I'm using udev-084-4. I can test RPM's if you want (since IDE Zip drives are not
common place anymore I don't expect you to own one.)

I'm marking this as a FC5Blocker.

Comment 1 David Zeuthen 2006-02-23 16:48:51 UTC
Created attachment 125113 [details]
Output from 'udevmonitor -e' after inserting Zip media and doing a 'blockdev --rereadpt /dev/hdd'

Comment 2 David Zeuthen 2006-02-28 16:27:25 UTC
This problem is still present in udev-084-6! It is a regression from FC4.

Comment 3 Harald Hoyer 2006-02-28 18:32:59 UTC
Created attachment 125408 [details]

would that 50-udev.rules fix the problem??

Comment 4 David Zeuthen 2006-02-28 19:32:11 UTC
Fixes only half of the problem... I still don't get all_partitions.. but at
least udev now refuses to invoke volume_id on this disk..

BUS=="ide", KERNEL=="hd[a-z]", SYSFS{removable}=="1", \
        ENV{ID_MODEL}=="IOMEGA_ZIP*",   NAME="%k", OPTIONS+="all_partitions"

This is the problem I think.. The model name isn't mentioned in the database..
will attach contents of 'udevinfo -e'

Comment 5 David Zeuthen 2006-02-28 19:33:50 UTC
Created attachment 125410 [details]
output of udevmonitor -e == my udev database

Comment 6 David Zeuthen 2006-02-28 19:35:20 UTC

# cat /proc/ide/hdd/model

may udev needs to read ID_MODEL from /proc/ide/%k/model?

Comment 7 Harald Hoyer 2006-03-01 08:33:14 UTC
Created attachment 125448 [details]

next try

Comment 8 Harald Hoyer 2006-03-01 08:36:01 UTC
Created attachment 125449 [details]

typo in the last rules, try this one

Comment 9 David Zeuthen 2006-03-01 16:37:17 UTC
udev-084-8 works great for me, thanks!