linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Manual udev invocation & via hotplug method gives different results
@ 2004-03-12  1:26 Sabharwal, Atul
  2004-03-12  1:42 ` Greg KH
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Sabharwal, Atul @ 2004-03-12  1:26 UTC (permalink / raw)
  To: linux-hotplug

Is there a difference between invoking udev manually from the command
line versus
invoking it from a hotplug event ? I expect the same result but have a
case where
the results are different :

Manual Execution:
~~~~~~~~~~~~~~~~
There is just one rule in rules file and I set DEVPATH=/block/sdd,
ACTION ­d

BUS="scsi", PROGRAM="/usr/local/bin/chassis_id",
NAME="/chasis$%c{1}/slot%c{2]/%c{3}

When Action = add, it creates /chassis1/slot4/disk4 and when
Action=remove, it 
Deletes it. 

Simulating Hotplug event using scsi command:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The disk sdd is at SCSI address 2:0:1:0. To simulate insertion, type as
below ::

Echo "scsi add-single-device-method 2 0 1 0 " > /proc/scsi/scsi

I expect name entry of /chassis/slot4/disk4 but it creates three device
entries 
( sdd, sdd1 & sg3 ).

When I do a echo "scsi remove-single-device-method 2 0 1 0">
/proc/scsi/scsi, all three entries
Get deleted.

In case, the callout was returning a failure, I can understand udev
doing some default
Behavior but only sdd should have been created. Sdd1 is a partition and
sg3 is a character
Device. Am I getting multiple hotplug events ?? 

If anyone knew some similar situation or knows how to debug this problem
?

--
Atul




 





-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id\x1470&alloc_id638&opÌk
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2004-03-12 23:50 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-12  1:26 Manual udev invocation & via hotplug method gives different results Sabharwal, Atul
2004-03-12  1:42 ` Greg KH
2004-03-12  1:51 ` Sabharwal, Atul
2004-03-12 18:44 ` Sabharwal, Atul
2004-03-12 18:54 ` Manual udev invocation & via hotplug method gives different Kay Sievers
2004-03-12 19:03 ` Manual udev invocation & via hotplug method gives different results Patrick Mansfield
2004-03-12 19:43 ` Sabharwal, Atul
2004-03-12 23:50 ` Sabharwal, Atul

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).