Re: [Linux-diag-devel] update-lsvpd-db hangs on cdrom device
Brought to you by:
hegdevasant,
mananth
From: Martin S. <ma...@me...> - 2005-01-26 21:55:25
|
Hi Stephen, >>>>> "Stephen" == Stephen Hemminger <she...@os...> writes: Stephen> update-lsvpd-db hangs on one of my machines. Stephen> Running it with sh -x shows: Stephen> + local name=hdc Stephen> + local d=/proc/ide/hdc Stephen> + '[' -d /proc/ide/hdc ']' Stephen> + local if=/proc/ide/hdc/identify Stephen> + local tf=/proc/ide/hdc/media Stephen> + local sf=/proc/ide/hdc/settings Stephen> + '[' -f /proc/ide/hdc/identify -a -f /proc/ide/hdc/media -a -f /proc/ide/hdc/settings ']' Stephen> + local adapter device_type Stephen> [...] Stephen> + read device_type Stephen> On this machine hdc is th Cd-rom device (with no CD in Stephen> it). First, thanks for the excellent problem report... I don't (yet? :-) understand this one. The line of code where you're seeing the hang is: read device_type <"$tf" so that's doing: read device_type </proc/ide/hdc/media (We just don't see it all because the trace doesn't show redirects.) Several questions: * What does that file contain? A "hexdump -C" might be most useful... Does the cat/hexdump command hang too? * What happens if you try the read by hand? * Do you get any messages from the kernel? Obviously I'm wondering if something bizarre is going on in the driver... This is weird. I've run this against lots of (empty) CD-ROM devices without a problem. By the way, I noticed that 2.6.10 is giving me warnings like this: kernel: Warning: /proc/ide/hd?/settings interface is obsolete, and will be removed soon! I'm pretty sure I don't see all of the information in that file anywhere in /sys yet. If anyone has idea idea where I might find it, I appreciate knowing... :-) Thanks... peace & happiness, martin |