From mboxrd@z Thu Jan 1 00:00:00 1970 From: linas@austin.ibm.com (Linas Vepstas) Date: Thu, 02 Aug 2007 22:39:52 +0000 Subject: Re: work-around for video4linux sysfs Message-Id: <20070802223952.GJ26837@austin.ibm.com> List-Id: References: <20070731195136.GW9881@outflux.net> In-Reply-To: <20070731195136.GW9881@outflux.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Fri, Aug 03, 2007 at 12:30:12AM +0200, Kay Sievers wrote: > On Thu, 2007-08-02 at 07:05 -0700, Kees Cook wrote: > > > > pci-0000:00:0e.0-scsi-0:0:0:0-part1 > > ^driver > > ^simple enumeration > > It's the subsystem not the driver. And it's not an enumeration based on > discovery order, it's the PCI slot number which doesn't change, also I haven't tried recently, but in the "good old days", I used to get bitten hard every time I shuffled around the PCI cards from one slot to another, to make room for one more. > SCSI uses stable interface and port numbers here. Hehe. SCSI LUN's can change when one is adding and removing failed disks, or shuffling around so that one can re-cable. That was another source of heartburn. The only viable solution is to work off some unique ID on the device (e.g. a MAC address on ethernet). --linas ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ 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