From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Guo, Min" Date: Fri, 27 Jun 2003 02:00:55 +0000 Subject: RE: Question about Hot device Identity Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org So do you mean that I can set my DEVPATH to /sys/block/sr0/? because there is a dev file in the directory. But I wonder why the there are no dev file in directory /sys/devices/pci0/0000:00:0f.2/usb1/1-1/1-1:0/host2/2:0:0:0/, Accoring to Flemming's comments,the sysfs will not create a dev file for USB CDROM, is that right? I did set the DEBUG = true, but nothing is outputed. Thanks Guo Min -----Original Message----- From: Greg KH [mailto:greg@kroah.com] Sent: Friday, June 27, 2003 1:14 AM To: linux-hotplug-devel@lists.sourceforge.net Subject: Re: Question about Hot device Identity On Wed, Jun 25, 2003 at 09:10:29PM -0700, Kevin P. Fleming wrote: > > But, this has nothing to do with whether udev can support your device > or not and create a node in /dev for it. udev should be able to do > exactly that, but I don't know whether it currently looks only at > /sys/class (which I think is the case) or whether it also looks at > /sys/block. Yes, udev can handle things in /sys/block. Actually it doesn't care where things are located in sysfs, it only looks to see if there is a file called "dev" in the directory passed to it in DEVPATH. If there is, it will then act apon that device. Hope this helps in clearing up things. greg k-h ------------------------------------------------------- This SF.Net email is sponsored by: INetU Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php _______________________________________________ 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 ------------------------------------------------------- This SF.Net email is sponsored by: INetU Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php _______________________________________________ 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