public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Ihno Krumreich <ihno@suse.de>
To: Linus Torvalds <torvalds@transmeta.com>
Cc: Andries Brouwer <aebr@win.tue.nl>,
	Martin Schwenke <martin@meltin.net>,
	Kurt Garloff <garloff@suse.de>,
	Linux kernel list <linux-kernel@vger.kernel.org>,
	Linux SCSI list <linux-scsi@vger.kernel.org>,
	Patrick Mochel <mochel@osdl.org>
Subject: Re: [PATCH] /proc/scsi/map
Date: Wed, 26 Jun 2002 18:03:50 +0200	[thread overview]
Message-ID: <20020626180350.A29197@wotan.suse.de> (raw)
In-Reply-To: <Pine.LNX.4.44.0206201046340.8225-100000@home.transmeta.com>

On Thu, Jun 20, 2002 at 11:11:45AM -0700, Linus Torvalds wrote:
> 
> 
> On Thu, 20 Jun 2002, Andries Brouwer wrote:
> >
> > At present this does not look very useful, but it may have future.
> 
> Nobody is actually using it yet, so there hasn't been much feedback (and,
> for the same reason, not much reason for driver writers to care -
> everything that shows up there now ends up being pretty much built by the
> bus that contains the devices rather than any device-specific information
> itself).
> 
> > But there is a pressing present problem. What name do my devices have?
> > I plug in a SmartMedia card reader. It will become some SCSI device.
> 
> That's a user-space issue, the kernel is not going to make any policy.
> We've seen where policy takes us with devfs.
> 


Hello,

by following the discussion I still miss a naming sceme for
devices like disks, tapes, cdrom for the user (no kernelhackers, but the
daily user running the system for some productive work). Does there exist
a naming sceme for persistant names for those devices? I think of something
like scsidev (http://www.garloff.de/kurt/linux/scsidev/#scsidev). 

I think the scsidev idea could be extended to a general sceme that
satisfies all technologies (not only ide and scsi).

I think of something like 

/dev/<device-type>/<technologie>_<Uniq-Number>_<Bus-number>_<Target>_<Lun>_<Device_type_specific>

<device-type> would be disks, tapes, cd-rom and other devices (scanner?)

<technologie> is something really readable for the user (ide, scsi, dasd (dasd are
              disks on the IBM zSeries)

<Uniq-number>	something to make a device uniq. examples for this could be:
                - PC the I/O-port used by the controller
		- DASD the device-port where the dasd is assigned
<bus-Number>
<Target>
<Lun>		As intented by SCSI. On technologies where they make no sense
		just leave them 0 (for example dasd don`t have that).

<device_type_specific>	depends on the device type. 
			for disks this is the partition-number
			for tapes rewind, norewind, compression, density

examples:

disks:

/dev/disks/ide_01f0_0_0_0_0	for the whole IDE disk
/dev/disks/ide_01f0_0_0_0_1	for partition 1
.
.
/dev/disks/ide_01f0_0_0_0_31	for partition 31

/dev/disks/scsi_0330_0_1_0_0	for the controller at port 0x330, disk bus 0 target 1, lun 0
/dev/disks/scsi_0330_0_1_0_1	for partition 1
.
.
/dev/disks/scsi_0330_0_1_0_15	for partition 15

/dev/disks/dasd_0150_0_0_0_0	for dasd at device-port 0x150, whole disk
/dev/disks/dasd_0150_0_0_0_1	for partition 1
.
.
/dev/disks/dasd_0150_0_0_0_3	for partition 3

tapes:

/dev/tapes/scsi_0330_0_2_0_r	auto-rewind SCSI-Tape at controller at Port 0x330
/dev/tapes/scsi_0330_0_2_0_n	no-rewind SCSI-Tape at controller at Port 0x330


Beside some standard devices, the devices could be created

- at system start for coldplugged devices
- by /sbin/hotplug for hotpluged devices

This naming sceme could be used for kernel 2.4 by creating nodes and for
kernel 2.5 by making symbolic links to /devices.

something forgotten?


Ihno


  parent reply	other threads:[~2002-06-26 16:03 UTC|newest]

Thread overview: 60+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200206200711.RAA10165@thucydides.inspired.net.au>
2002-06-20 15:13 ` [PATCH] /proc/scsi/map Linus Torvalds
2002-06-20 15:36   ` Dave Jones
2002-06-20 17:01     ` Linus Torvalds
2002-06-20 16:55   ` Andries Brouwer
2002-06-20 19:18   ` Patrick Mochel
     [not found]   ` <20020620165553.GA16897@win.tue.nl>
2002-06-20 17:52     ` Patrick Mansfield
2002-06-20 18:36       ` Linus Torvalds
2002-06-20 18:52         ` James Bottomley
2002-06-20 19:15           ` Linus Torvalds
2002-06-20 16:28             ` Benjamin Herrenschmidt
2002-06-21  0:46               ` Linus Torvalds
2002-06-20 16:49                 ` Benjamin Herrenschmidt
2002-06-20 20:06             ` Oliver Xymoron
2002-06-22 18:27         ` Pavel Machek
2002-06-20 18:11     ` Linus Torvalds
2002-06-20 22:59       ` Martin Schwenke
2002-06-20 23:13         ` Linus Torvalds
2002-06-22 18:25           ` Pavel Machek
2002-06-26 16:03       ` Ihno Krumreich [this message]
2002-06-20 19:55     ` Greg KH
2002-06-21  6:28   ` Mike Touloumtzis
2002-06-22 17:24 David Brownell
2002-06-22 17:48 ` Roman Zippel
2002-06-22 20:11   ` Douglas Gilbert
2002-06-22 20:57     ` Roman Zippel
2002-06-22 18:18 ` Nick Bellinger
2002-06-24  1:50   ` David Brownell
2002-06-25 16:46   ` Patrick Mochel
2002-06-25 16:33 ` Patrick Mochel
2002-06-25 17:49   ` David Brownell
2002-06-26 23:39     ` Nick Bellinger
2002-07-03  0:59     ` Pavel Machek
     [not found] <20020621092943.D1243@austin.ibm.com>
2002-06-21 16:17 ` Patrick Mochel
  -- strict thread matches above, loose matches on Subject: below --
2002-06-20 23:59 Grover, Andrew
     [not found] <20020620112543.GD26376@gum01m.etpnet.phys.tue.nl>
2002-06-20 15:34 ` Linus Torvalds
2002-06-20 16:30   ` Martin Dalecki
2002-06-20 16:58     ` James Bottomley
2002-06-20 18:27       ` Linus Torvalds
2002-06-20 20:55         ` Martin Dalecki
2002-06-20 21:04           ` Linus Torvalds
2002-06-20 21:36             ` Martin Dalecki
2002-06-20 20:12     ` Patrick Mochel
2002-06-20 22:29       ` Martin Dalecki
2002-06-22 18:42         ` Pavel Machek
2002-06-21 21:33       ` Oliver Xymoron
2002-06-22  4:38         ` Nick Bellinger
2002-06-22 19:41           ` Douglas Gilbert
2002-06-22 19:11             ` Nick Bellinger
2002-06-25 18:13             ` Patrick Mochel
2002-06-25 16:05         ` Patrick Mochel
2002-06-25 16:57           ` Oliver Xymoron
2002-06-25 18:58             ` Patrick Mochel
2002-07-03  1:01               ` Pavel Machek
2002-06-20 18:32   ` Kurt Garloff
2002-06-20 18:53     ` Linus Torvalds
2002-06-21  9:07     ` Kurt Garloff
2002-06-20  0:44 Kurt Garloff
2002-06-20  5:03 ` Linus Torvalds
2002-06-20  7:09   ` Martin Schwenke
2002-06-20 11:25   ` Kurt Garloff

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020626180350.A29197@wotan.suse.de \
    --to=ihno@suse.de \
    --cc=aebr@win.tue.nl \
    --cc=garloff@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=martin@meltin.net \
    --cc=mochel@osdl.org \
    --cc=torvalds@transmeta.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox