Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 20 Jun 2002 13:53:08 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 20 Jun 2002 13:53:07 -0400 Received: from e31.co.us.ibm.com ([32.97.110.129]:45715 "EHLO e31.co.us.ibm.com") by vger.kernel.org with ESMTP id ; Thu, 20 Jun 2002 13:53:04 -0400 Date: Thu, 20 Jun 2002 10:52:33 -0700 From: Patrick Mansfield To: Andries Brouwer Cc: Linus Torvalds , Martin Schwenke , Kurt Garloff , Linux kernel list , Linux SCSI list , Patrick Mochel Subject: Re: [PATCH] /proc/scsi/map Message-ID: <20020620105233.A5506@eng2.beaverton.ibm.com> References: <200206200711.RAA10165@thucydides.inspired.net.au> <20020620165553.GA16897@win.tue.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20020620165553.GA16897@win.tue.nl>; from aebr@win.tue.nl on Thu, Jun 20, 2002 at 06:55:53PM +0200 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1663 Lines: 58 On Thu, Jun 20, 2002 at 06:55:53PM +0200, Andries Brouwer wrote: > Kurt's patch does not solve all problems, but what it provides > is a small translation table between different names for the same thing. > That information is not easily obtainable without his patch. > I do not see that driverfs provides such information. > > Andries With Mike Sullivan'a patch for SCSI driverfs support: http://marc.theaimsgroup.com/?l=linux-scsi&m=102434655912858&w=2 You can see the relationship (not that it is simpile or easy to read), for example, on my system for the LUN at scsi3 channel 0 , id 3, lun 0 I can see that the sd (disc) is at major/minor 4200 (66, 0), and sg (gen) is at 1521 (21, 33): [root@elm3a50 3:0:3:0]# pwd /devices/root/pci1/01:07.0/scsi3/3:0:3:0 [root@elm3a50 3:0:3:0]# find . . ./3:0:3:0:p2 ./3:0:3:0:p2/kdev ./3:0:3:0:p2/type ./3:0:3:0:p2/power ./3:0:3:0:p2/name ./3:0:3:0:p1 ./3:0:3:0:p1/kdev ./3:0:3:0:p1/type ./3:0:3:0:p1/power ./3:0:3:0:p1/name ./3:0:3:0:disc ./3:0:3:0:disc/kdev ./3:0:3:0:disc/type ./3:0:3:0:disc/power ./3:0:3:0:disc/name ./3:0:3:0:gen ./3:0:3:0:gen/kdev ./3:0:3:0:gen/type ./3:0:3:0:gen/power ./3:0:3:0:gen/name ./type ./power ./name [root@elm3a50 3:0:3:0]# cat 3\:0\:3\:0\:gen/kdev 1521 [root@elm3a50 3:0:3:0]# cat 3\:0\:3\:0\:disc/kdev 4200 [root@elm3a50 3:0:3:0]# ls -l /dev/sdag brw-rw---- 1 root disk 66, 0 Aug 30 2001 /dev/sdag -- Patrick Mansfield - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/