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   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-03-07 02:47:46 EST Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On:    
Bug Blocks: 150222    
Attachments:
Description Flags
Output from 'udevmonitor -e' after inserting Zip media and doing a 'blockdev --rereadpt /dev/hdd'
none
50-udev.rules
none
output of udevmonitor -e == my udev database
none
50-udev.rules
none
50-udev.rules none

Description David Zeuthen 2006-02-23 11:48:51 EST
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 11:48:51 EST
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 11:27:25 EST
This problem is still present in udev-084-6! It is a regression from FC4.
Comment 3 Harald Hoyer 2006-02-28 13:32:59 EST
Created attachment 125408 [details]
50-udev.rules

would that 50-udev.rules fix the problem??
Comment 4 David Zeuthen 2006-02-28 14:32:11 EST
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 14:33:50 EST
Created attachment 125410 [details]
output of udevmonitor -e == my udev database
Comment 6 David Zeuthen 2006-02-28 14:35:20 EST
However..

# cat /proc/ide/hdd/model
IOMEGA ZIP 100 ATAPI

may udev needs to read ID_MODEL from /proc/ide/%k/model?
Comment 7 Harald Hoyer 2006-03-01 03:33:14 EST
Created attachment 125448 [details]
50-udev.rules

next try
Comment 8 Harald Hoyer 2006-03-01 03:36:01 EST
Created attachment 125449 [details]
50-udev.rules

typo in the last rules, try this one
Comment 9 David Zeuthen 2006-03-01 11:37:17 EST
udev-084-8 works great for me, thanks!